Posted By

damarev on 03/04/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

mondomondomxcom
xavigimenez


getDefinitionByName() - [ attachMovie ]


 / Published in: ActionScript 3
 

  1. import flash.display.DisplayObject;
  2. import flash.display.Sprite;
  3. import flash.utils.getDefinitionByName;
  4.  
  5. var ClassReference:Class = getDefinitionByName("objetoExportado") as Class;
  6. var instance:Object = new ClassReference();
  7. addChild(DisplayObject(instance));

Report this snippet  

You need to login to post a comment.