load it from an mp3 file.... use this code (below) :
//load up a track
track= new Sound();
track.loadSound("knightrider.mp3",true);
track.start(cue, 1)
----- Original Message -----
From: "Jason Bayly" <[EMAIL PROTECTED]>
Newsgroups: fugli
To: "Flash Developers List" <[EMAIL PROTECTED]>
Sent: Thursday, October 16, 2003 4:35 PM
Subject: [fugli] Preloaded and the sound object
> Hi All,
>
> I have a flash piece where i have a sound file playing over multiple
scenes.
> In order to do this i have had to use the sound object as below..
>
> // start playing the music, this is on the first frame of the first scene
of
> the preloader....
> mySound_sound = new Sound();
> mySound_sound.attachSound("circusmusic");
> mySound_sound.start();
>
> This sound file is about 60K currently and is set to load on the first
frame
> in the linkage settings dialouge. So what happens is the entire sound is
> loaded before the preloader starts playing... Hence the user on a 56K
modem
> has to wait even before seeing the preloader info etc.. Which isnt a great
> soltuion.. If i disable the option "load on first frame", the sound dotn
> play at all.
>
> Can anyone think of another way to get the sound playing without forcing
the
> user to wait and watch a blank screen for 15secs etc??
>
> TIA
>
> Jason
>
>
>
> ---
> You are currently subscribed to fugli as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
>
> MX Downunder AsiaPac DevCon - http://mxdu.com/
---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/