We Recommend

Essential ActionScript 3.0 Essential ActionScript 3.0
The book focuses on the core language and object-oriented programming, but also adds a deep look at the centerpiece of Flash Player's new API: display programming. Enjoy hundreds of brand new pages covering exciting new language features, such as the DOM-based event architecture, E4X, and namespaces--all brimming with real-world sample code.


Posted By

mswallace on 07/11/07


Tagged

object variable child addChild


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

copyleft
gismo


Create an object that you can load SWF's Into for your addChild


Published in: ActionScript 3 


URL: http://board.flashkit.com/board/showthread.php?p=3903435#post3903435

  1. var child:Object=mySwfLoader;
  2. myEmptyMC.addChild(child);
  3.  
  4. //this changes it to a new thing because I'm setting child which is already added to the MovieClip to something new
  5. child=new Object();

Report this snippet 

You need to login to post a comment.