This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > September 2006 > LoadMovie ActionScript





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author LoadMovie ActionScript
CelShade

2006-09-12, 10:32 pm

I'm hoping someone can help with my question.

I'm currently designing a flash intranet for the company I work for. And I
have the background, navigation etc on its own individual fla file. But I wish
to have it so that when staff visit the intranet and click on each button it
uses the actionscript LoadMovie to load an external swf file. I have managed
to do this but it appears on the page as using the x & y coordinates of 0.
Does anyone know what I need to do in order for external swf file to appear at
a fixed point using x & y? And what is the actionscript I need to achieve this?

If anyone can help with any suggestions.

Many thanks.

Moca

2006-09-12, 10:32 pm

You need to load the swf into a blank movie clip on the stage. So the
loaded movie replaces the blank movie and it iss placed where ever the
blank movie is positioned:
http://www.adobe.com/cfusion/knowle...cfm?id=tn_14190

Scroll to targeting instances


CelShade wrote:
> I'm hoping someone can help with my question.
>
> I'm currently designing a flash intranet for the company I work for. And I
> have the background, navigation etc on its own individual fla file. But I wish
> to have it so that when staff visit the intranet and click on each button it
> uses the actionscript LoadMovie to load an external swf file. I have managed
> to do this but it appears on the page as using the x & y coordinates of 0.
> Does anyone know what I need to do in order for external swf file to appear at
> a fixed point using x & y? And what is the actionscript I need to achieve this?
>
> If anyone can help with any suggestions.
>
> Many thanks.
>
>

Alex Z

2006-09-12, 10:32 pm

Hey CelShade.
If you want the content to appear ind the same location each time they press
the menu, I suggest you use the Loader component.
Really easy to use, you just place it on the scene, resize it using the free
transform toll, give it a instanse (fx. myLoader) and in the on (release)
action in the menu, you just give the loader the path to the swf like this:
myLoader.contentPath = "my.swf";

Thats it. :)

Best regards
Alex Zak.

"CelShade" <webforumsuser@macromedia.com> wrote in message
news:edmf8g$pa6$1@forums.macromedia.com...
> I'm hoping someone can help with my question.
>
> I'm currently designing a flash intranet for the company I work for. And
> I
> have the background, navigation etc on its own individual fla file. But I
> wish
> to have it so that when staff visit the intranet and click on each button
> it
> uses the actionscript LoadMovie to load an external swf file. I have
> managed
> to do this but it appears on the page as using the x & y coordinates of 0.
> Does anyone know what I need to do in order for external swf file to
> appear at
> a fixed point using x & y? And what is the actionscript I need to achieve
> this?
>
> If anyone can help with any suggestions.
>
> Many thanks.
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews