Hello I have a SWF clip that I got from a friend. the code looks like this:
[Embed(source="assets/gorilla_run.swf", mimeType="application/octet-stream")]private var gorillaRun:Class;
public var loader:Loader = new Loader();
private var movie:MovieClip= new MovieClip;
loader.loadBytes(new gorillaRun());
movie.addChild(loader);
stage.addChild(movie);
I would like to access the frames of this movieclip so that I can control its action. There are many frames to this SWF however when I use this command:
trace(movie.totalframes);
I get “1” as my output.
You get number of frames in the container (
movie). When you make thismovie.addChild(loader);, you do not insert timeline fromgorilla_run.swfto themovie. If you want to get total farmes try this: