Trouble using Loader, can't access properties of loaded swf

Posted by anne on Stack Overflow See other posts from Stack Overflow or by anne
Published on 2010-04-29T01:09:32Z Indexed on 2010/04/29 1:17 UTC
Read the original article Hit count: 538

Filed under:
|

May not have asked question correctly so I’m asking again. I’m using Flash AS3 with code in actions layer.

Main movieclip onstage is : design_mc. Within it is a movieclip already in place onstage with an instance name clipart_mc.

Now I’m also loading a ListBox to the stage and each time a selection is made from listbox myLoader9 is used to load selected .swf into design_mc.clipArt_mc.

Now within each of the .swf files loaded into design_mc.clipArt_mc there is a mc I’d like to color transform called color_mc.

So now the listbox is onstage and I make a selection that places heart.swf inside of design_mc.clipArt_mc. I want to access heart.swf so I did this:

var child:DisplayObject = myLoader9.content.contentLoaderInfo.content.color_mc;
var colorTrans3:ColorTransform = new ColorTransform();
var trans3:Transform = new Transform(child);

I still can not get to heart.swf. Can anyone help please?

Anne

© Stack Overflow or respective owner

Related posts about as3

Related posts about loader