webhorizont
unread,Jun 8, 2010, 3:18:46 AM6/8/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?
//
_________________________________________________________________________________________