Hi:)
I setup a sound in each scene:
and I put a icon to play it:
Code
<layer name="playmusic" keep="true" url="audio.png" onclick="playsound(bgsound,get(sound.file),0,0);" />
This run good in Chome HTML5 mode, but in Chrome Flash mode, After I click the playmusic icon, no music played, and all hotspots lose effectiveness. there was no error log show.
And if I put a hard-coded in xml:
Code
<layer name="playmusic" keep="true" url="audio.png" onclick="playsound(bgsound,a01.mp3|a01.ogg,0,0);" />
it run good in Chrome flash mode now.
What do I do wrong ?
Jove.
_____________________________update________________________________
The custom label inside <scene> node just like:
In HTML5 mode, trace(get(sound.file)) can get the value:"a01.mp3|a01.ogg"
But in Flash mode, trace(get(sound.file)) get null.
Why?