Flash actionscript 3.0: Add a External SWF library item using AS3.0

Add a External SWF library item using AS3.0

Posted by Sankar.G | Posted in | Posted on 11:47 PM

if we want to add a External SWF Libraries item to another SWF file using AS3.0.
we want to create a loader and URLRequest and load the external SWF file
and put addEventListener for loader.contentLoaderInfo with Event.COMPLETE

create a class and catch the event.target.content.loaderInfo.applicationDomain.getDefinition("box")as Class
box=external SWF library item linkage name & convert it in to object like below

var clsObj:Object=new cls();
cls=class name

Below link is used to add a items from external swf library

Externallibrary.zip

Comments (2)

Thank's man you save me.

Thanks man!
After 2 years, still helps!