Search code examples
actionscript-3flash

Go to next frame in external flash Action script 3


I have two buttons:

  • First button load swf.
  • Second button go to next frame in this swf.

Code for second button not working.

This is my code:

image


Solution

  • The ProLoader class has content property.

    content : DisplayObject

    Contains the root display object of the SWF file or image (JPG, PNG, or GIF) file that was loaded by using the load() or loadBytes() methods.

    So, your code should looks like this:

    (fl_ProLoader.content as MovieClip).nextFrame();