about playing animation

4 views
Skip to first unread message

Harilal K M

unread,
Nov 18, 2010, 3:59:17 AM11/18/10
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

Harilal K M

unread,
Nov 18, 2010, 4:02:38 AM11/18/10
to BulkLoader users
the animation stops at first frame

Harilal K M

unread,
Nov 23, 2010, 9:50:45 PM11/23/10
to BulkLoader users
hello,
i corrected it by doing this.
bg = loader.getMovieClip("bg", true);
addChild(bg);

i don't know the reason but it worked

regards
harilal
Reply all
Reply to author
Forward
0 new messages