Posted By

bschulz on 11/06/09


Tagged


Versions (?)

BCD snippet


 / Published in: ActionScript 3
 

  1. // for the menu - frame 1
  2. if(loadit != undefined) {
  3. loadit.unload();
  4. } else {
  5. var loadit = new Loader();
  6. addChild(loadit);
  7. }
  8.  
  9.  
  10.  
  11. function backToMenu(){
  12. loadit.unload();
  13. }
  14.  
  15. // for the inside swfs.
  16. btn_return.addEventListener( MouseEvent.MOUSE_UP, loadMenu );
  17. function loadMenu(e:MouseEvent):void{
  18. MovieClip(this.parent.parent).backToMenu();
  19. }

Report this snippet  

You need to login to post a comment.