Loading a movieClip from another movieClip in the stage

  • shantos
  • Born
  • Born
  • shantos
  • Posts: 1

Post 3+ Months Ago

Hi, i just learn flash and AS and now i am trying to build a menu with submenu.
I have 2 files :

a. loader.swf
b. menu.swf

Condition :
1. Loader.swf has a button that loads menu.swf into stage via createEmptyMvieClip.
2. Menu.swf have sets of button that supposed to load a jpeg/clip to Loader stage acting as a "submenu".

And my question is :

Is it possible to load a clip from a loaded menu.swf into Loader.swf stage?


I have this code that individually works but not when i load the menu.swf. The map.swf won't load into Loader stage.

==== loader.swf ===
Code: [ Select ]
 
 
_root.createEmptyMovieClip("menu",0);
menu.loadMovie("menu.swf");
 
 
  1.  
  2.  
  3. _root.createEmptyMovieClip("menu",0);
  4. menu.loadMovie("menu.swf");
  5.  
  6.  


=== menu.swf ===
Code: [ Select ]
 
btn1.onPress = function () {
    _root.createEmptyMovieClip("container", 1);
    container.loadMovie("new_mohome/map.swf", 2);
}
 
  1.  
  2. btn1.onPress = function () {
  3.     _root.createEmptyMovieClip("container", 1);
  4.     container.loadMovie("new_mohome/map.swf", 2);
  5. }
  6.  


I'm sorry for my bad english :D.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 16 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.