# Preloader, imported sound integration

**URL:** <https://forum.kirupa.com/t/preloader-imported-sound-integration/179684>\
**Category:** flash\
**Created:** [February 22, 2006, 9:19am UTC](https://forum.kirupa.com/t/preloader-imported-sound-integration/179684 "2006-02-22T09:19:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyutipay](https://avatars.discourse-cdn.com/v4/letter/k/ac91a4/32.png) [@kyutipay](https://forum.kirupa.com/u/kyutipay)\
**Post date:** [February 22, 2006, 9:19am UTC](https://forum.kirupa.com/t/preloader-imported-sound-integration/179684/1 "2006-02-22T09:19:43Z")

</div>

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 .
