You must be logged in to post Login Register
Search 

preloading problems

User Post

4:56 am
December 7, 2009


Paltas

New Member

posts 1

1
Hi,
I have a problem with my preloader. You can see it here: http://www.moko.lt/Portals/0/b…..meniu.html. for example press the upper button and then the one with the running skeleton on the left.

here is my preloading code:

  1. vid1_btn.addEventListener(MouseEvent.CLICK,krauna1);
  2.  
  3. function krauna1(evt:Event):void {
  4.     var krauna: Loader=new Loader();
  5.     krauna.load(new URLRequest(“h001.swf”));
  6.     krauna.contentLoaderInfo.addEventListener(Event.COMPLETE,pakrove);
  7.     flash.media.SoundMixer.stopAll();
  8.     stage.addChild(preloaderis)
  9. }
  10.  
  11. function pakrove(aa:Event) {
  12.     stage.removeChild(preloaderis)
  13.     var pav1:Sprite=Sprite(aa.target.content);
  14.     stage.addChildAt(pav1,1);
  15.     stage.removeChildAt(0);
  16. }

when its loading .swf file the sound comes firs. How can I fix that?

Topic RSS 
Search