Harilal K M
unread,Nov 18, 2010, 3:59:17 AM11/18/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
hello
I loaded a swf which is to be played when it is loaded . But the
animation is not playing
this is my code:
loader = new BulkLoader("main_site");
loader.logLevel = BulkLoader.LOG_INFO;
loader.add("bottom.swf", {id:"bottom"});
loader.add("view00.swf",{id:"bg"});
loader.add("view01.swf",{id:"downloads"});
loader.addEventListener(BulkLoader.COMPLETE, onAllItemsLoaded);
// dispatched when any item has progress:
loader.addEventListener(BulkLoader.PROGRESS, onAllItemsProgress);
// now start the loading
loader.start();
}
private function onAllItemsLoaded(evt:Event)
{
bg = loader.getMovieClip("bg");
addChild(bg);
bg.gotoAndPlay(2);
trace(bg.totalFrames);
//
bottom = loader.getMovieClip("bottom");
addChild(bottom);
bottom.addEventListener(MainMenuEvent.ONSELECTED, menuClicked);
//
loader.removeAll();
loader.clear();
}
regards
harilal