PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
It is currently Thu Apr 25, 2019 8:15 am

All times are UTC - 5 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: flash preloader problem
PostPosted: Mon Dec 07, 2009 7:34 am 
Forum Newbie

Joined: Mon Dec 07, 2009 7:20 am
Posts: 1
I have a problem with my preloader. You can see it here: for example press the upper button and then the one with the running skeleton on the left.

here is my preloading code:

Syntax: [ Download ] [ Hide ]
function krauna1(evt:Event):void {
    var krauna: Loader=new Loader();
    krauna.load(new URLRequest("h001.swf"));
function pakrove(aa:Event) {
    var pav1:Sprite=Sprite(;

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

PostPosted: Wed Jul 07, 2010 2:00 pm 
Forum Regular
User avatar

Joined: Sun Dec 29, 2002 6:40 pm
Posts: 908
Location: VA
You need to do two things. First go to the properties bar for the sound file and give it an instance name, something like themeMusic or whatever. Then on the first frame of your .fla file you need to add themeMusic.stop(); which will prevent the sound from starting to play. Then once your pre-loader has finished you can call;

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group