turb
06-24-2009, 06:51 PM
Hi,
I'm new to AS3 and have successfully loaded an external swf. When load is complete, I add the loader target content to a movieclip but I've got problem accessign it after.
// siteLoaderComplete
function siteLoaderComplete(e:Event)
{
// Set site holder
site.x = -500 + 50;
site.y = -600 + 100;
site.addChild(e.target.content);
}
The only problem is that it that right now, it add a child with a instance name of 'instance5' in site. But how can I change 'instance5' for another term like 'myContent'??
I need to be able to access content from the loaded swf.
Thank
I'm new to AS3 and have successfully loaded an external swf. When load is complete, I add the loader target content to a movieclip but I've got problem accessign it after.
// siteLoaderComplete
function siteLoaderComplete(e:Event)
{
// Set site holder
site.x = -500 + 50;
site.y = -600 + 100;
site.addChild(e.target.content);
}
The only problem is that it that right now, it add a child with a instance name of 'instance5' in site. But how can I change 'instance5' for another term like 'myContent'??
I need to be able to access content from the loaded swf.
Thank