I’m having some problems integrating basic prealoder, an imported-to-library sound, and an external movieclip.
can you provide me basic sample on how to implement this?
right now, what i did are these:
in the main timeline:
frame 1:
var bTotal:Number = _root.getBytesTotatl();
var bLoaded:Number = _root.getBytesLoaded();
var percent:Number = (bLoaded/bTotal) * 100;
loadbarMC._width = percent; //loadbarMC is the preloader
if(bTotal == bLoaded){
_root.gotoAndStop(3);
}
frame 2: gotoAndPlay(1);
frame 3;
this.createEmptyMovieClip("mysound",this.getNextHighestDepth());
var dSound:Sound = new Sound(mysound);
dSound.attachedSound("SONG") // SONG is the linkage id
dSound.start(0,99);
//in the frame 3 of the main time line is the location of the imported movieclip.
The problem i encountered is that it never shows the preloader bar/ i don’t see the loadbar progress even if i already tested it online (thinking it might be due to the fact that uickly loaded since it was in my local machine). what it does is that i only see a blank screen then after a few minutes it will just automatically play the sound and the imported movieclip. i can’t see the preloader bar progresses .