RSS
email

Loading Library Assets from Loaded swf:



To load Movieclip from library in AS3:
var Content_mc:MovieClip= new MovieClip()

where Content_mc is the linkage name similarly to load content from loaded swf

var Content_mc:Class = event.target.applicationDomain.getDefinition(”Content_mc”) as Class
var new_content_mc:MovieClip = new Content_mc() as MovieClip;
addChild(new_content_mc);

Note : place this code in Complete Event ie., after preloading

Bookmark and Share

2 comments:

Anonymous said...

Is this possible with AS2

Saravanan said...

Nope its not i think....

 

Recent Posts

Recent Visitors

Donate Me

About Me

My photo
Chennai, Tamil nadu, India
Nothing more to say about me.. Just a Action Script programmer / Flex developer having 4.5 years of experience.