Error playing mp3 file.


hi!

i trying make mp3 player(a simple one) songs loaded xml file.when start sound @ first time works when click button load second song gives me error , stops playing.

and here error message:
error: error #2037: functions called in incorrect sequence, or earlier call unsuccessful.
@ flash.media::sound/flash.media:sound::_load()
@ flash.media::sound/load()
@ site2008_fla::s_34/playsong()
@ site2008_fla::s_34/onmusic2click()

from docs:

once load() called on sound object, can't later load different
sound file sound object. load different sound file, create
new sound object.

http://livedocs.adobe.com/flash/9.0/actionscriptlangrefv3/flash/media/sound.html#load()





More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support