I am very new to Flash and I need help to get started with building multi-pages Flash application.
I managed to open another swf file (called Page1) from within the main swf by calling this function
private function LoadExternalSwf(): void { var loader:Loader = new Loader(); var urlReq:URLRequest = new URLRequest('page1.swf'); loader.load(urlReq); addChild(loader); }
-
How do you add a sort of ‘Back’ button to Page1 so that it will close itself (so that we are back to the main screen)?
-
If Page1 were a movie, is it possible to automatically close it after it finishes playing?
(I am using Flash CS3, Flex Builder 3, AS3)
Thank you
Solution:
From page1:
From the main swf: