Copy link to clipboard
Copied
What is the code I must use when I click on a button (goto1_btn), it loads another flash animation (1.swf) which has a back button (back_btn) to return at the starter? (gallery)
(Note: I'll use more than 30 btn on the starter → at the end: more than 30 swf in the folder)
Thanks
I won't be writing out all the code you will need for this since it can get fairly involved for what you describe wanting. As part of your learning you should also learn how to find coding solutions. Google and the Flash Help documentation are two of the best tools available for this. Search Google using "AS3 Loader tutorial" You might even want to try searching for "AS3 gallery tutorial"
Copy link to clipboard
Copied
It sounds like you can use the Loader class for this. What code do you have so far? For the back button you could assign a listener to the loaded swf from the main file as soon as it finishes loading so that the main file can unload the loaded swf.
Copy link to clipboard
Copied
In fact I'm a begginer in ActionScript, I don't have a code ready and don't know how to use the loader class
Copy link to clipboard
Copied
I won't be writing out all the code you will need for this since it can get fairly involved for what you describe wanting. As part of your learning you should also learn how to find coding solutions. Google and the Flash Help documentation are two of the best tools available for this. Search Google using "AS3 Loader tutorial" You might even want to try searching for "AS3 gallery tutorial"
Copy link to clipboard
Copied
Okay
Find more inspiration, events, and resources on the new Adobe Community
Explore Now