PDA

View Full Version : flash "loadMovie" removes view resource


girardjf
01-23-2003, 06:19 PM
If i use the "loadMovie" flash action within a flash movie that is declared within a view as a resource, the resource seems to disappear entirely.

Here's the code:

<view name="winContent" resource=
"img/Home_LogoAni.swf"/>

At the end of the "img/Home_LogoAni.swf" flash movie, i load another movie.(via actionscript) It doesn't matter whether i load to the same level or another one, when the LZX file is viwed, the resource disappears when this action runs in the flash player.

-j

antun
01-23-2003, 06:24 PM
You can only really use basic stop and play actions in the SWFs you generate in Flash. The LPS leverages the Flash Player, but that doesn't mean that you can bring in a Flash SWF that's got loads of actions and use that.

You can set the resource of a view when you want to put a new SWF in it.

-Antun

girardjf
01-23-2003, 06:54 PM
got it. basically i'm justt trying to find a method of knowing when a movie stops so i can switch a resource.

because "onstop" didn't work, i tried just havingg the flash movie load the next section itself. wasn't a lot of code, but i get the idea.

thanks again,

-j

antun
01-24-2003, 06:08 PM
You can use the onlastframe event. Using the view that contains the resource:-


<view resource="mySwf.swf">
<method event="onlastframe">
... do stuff here...
</method>
</view>


-Antun