Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.Menu.XML_Menu ; // Enable the menu software
- var menuBody:XML_Menu = new XML_Menu("XML Menu.xml", "horizontal") ; // Open the menu in this file
- addChild (menuBody); // Display the menu on the screen
- menuBody.parent.setChildIndex(menuBody, menuBody.parent.numChildren - 1);
- stage.scaleMode = StageScaleMode.NO_SCALE; // Fix the menu into the top-left corner, even if the screen is resized.
- stage.align = StageAlign.TOP_LEFT;
- stop(); // This command makes the program freeze rather than run through the timeline.
- // Then selecting from the menu causes jumps to specified places in the timeline
- import flash.display.MovieClip;
- var empty_mc:MovieClip = new MovieClip();
- addChild(empty_mc);
- var main_mc:MovieClip = new main;
- empty_mc.addChild(main_mc);
- menuBody.parent.setChildIndex(menuBody, menuBody.parent.numChildren - 1);
- SoundMixer.stopAll();
Add Comment
Please, Sign In to add comment