Loader class: How can I go to the specific scenes and frames?

Is there a way to go to a specific scene and the image in the file that I'm loading using the loader class? For example, I would go to the 3 image in scene 2 of the file I am loading "File.swf".

Here is the code I use to load the file. Now, I would go to a specific image and scene within the file:

var LoaderHome:Loader = new Loader();

LoaderHome.load (new URLRequest ("File.swf"));

addChild (LoaderHome);

Question #2

Also, when I add the file "File.swf" should I remove the film exist for performance/memory management? If so, how would remove a child where the code is another movie?

Before you can try to manipulate the file, you need to know that it has finished loading.  For this you need to add an event listener to the object/property contentLoaderInfo the loader.  You can then use the function handler for this listener action for the loaded file.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for