Hi there,
 I'm using the following function to load a sound file. It all works
just fine the first time, but when I try loading a second file, I get
the following error:

IllegalOperationError: Error #2037: Functions called in incorrect
sequence, or earlier call was unsuccessful.
        at components::SoundPlayer/loadSound()
        at AS3Loader/AS3Loader$385$private::loadTheSound()
        at AS3Loader/____soundButton_click()


any ideas what I am doing wrong?

the function :

                public function loadSound(url:String){
                        var request:URLRequest  = new URLRequest(url);
                        __snd.load(request);
                        __channel = __snd.play();
                }

tia

PBH


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to