Guest User

Untitled

a guest
May 22nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. import com.Menu.XML_Menu ; // Enable the menu software
  2. var menuBody:XML_Menu = new XML_Menu("XML Menu.xml", "horizontal") ; // Open the menu in this file
  3. addChild (menuBody); // Display the menu on the screen
  4. menuBody.parent.setChildIndex(menuBody, menuBody.parent.numChildren - 1);
  5.  
  6. stage.scaleMode = StageScaleMode.NO_SCALE; // Fix the menu into the top-left corner, even if the screen is resized.
  7. stage.align = StageAlign.TOP_LEFT;
  8.  
  9.  
  10.  
  11. stop(); // This command makes the program freeze rather than run through the timeline.
  12. // Then selecting from the menu causes jumps to specified places in the timeline
  13.  
  14. import flash.display.MovieClip;
  15.  
  16. var empty_mc:MovieClip = new MovieClip();
  17. addChild(empty_mc);
  18.  
  19. var main_mc:MovieClip = new main;
  20. empty_mc.addChild(main_mc);
  21.  
  22. menuBody.parent.setChildIndex(menuBody, menuBody.parent.numChildren - 1);
  23.  
  24. SoundMixer.stopAll();
Add Comment
Please, Sign In to add comment