Hello everyone,
I bet this question has been answered before, but searching for those answers is not easy when the keywords I can chose from are “MovieClip script addChild” :crying:
I am using Flex Builder to create my Flash app. Our designer has given me an .SWF containing movieclips with small animations of approx. 30 frames. On the last frame he has written a “stop();” framescript.
I have set the linkage of these movieclips and then made a class for each of them. It simply extends MovieClip and looks like this (I have used common names here to make things a bit clearer):
package
{
import flash.display.MovieClip;
[Embed(source="assets/assets.swf", symbol="my_animation1")]
public class MyAnimation extends MovieClip
{
public function MyAnimation()
{
super();
}
}
}
As you can see, nothing fancy. When instantiated and added to the stage, however, the animation is looping. Looks like the framescript on the last frame of the movieclip is never called. What am I doing wrong? What is the best way to let the animation stop at its last frame?
Droozle