Get access instances after load an external swf

1 view
Skip to first unread message

webhorizont

unread,
Jun 8, 2010, 3:18:46 AM6/8/10
to BulkLoader users
Hi,

The problem: how can I get access to instance items after an external
swf loaded?
My code:
//
_________________________________________________________________________________________
var containerMC:MovieClip;
var _bulkLoader:BulkLoader=new BulkLoader("loader");
_bulkLoader.add("external.swf");
_bulkLoader.add("image.jpg");
_bulkLoader.addEventListener(BulkProgressEvent.COMPLETE,
_onDesignLoadComplete);
_bulkLoader.start();

function _onDesignLoadComplete(event:BulkProgressEvent):void {
containerMC=_bulkLoader.getMovieClip("external.swf");
addChild(containerMC);
containerMC.sgMC.addChild(_bulkLoader.getBitmap("image.jpg")); //<---
here it's working, I understand, why.
}
containerMC.sgMC.addChild(_bulkLoader.getBitmap("image.jpg")); //<---
here it doesn't works....why?
//
_________________________________________________________________________________________
Reply all
Reply to author
Forward
0 new messages