Problem med at hente FlashVars ind i function
Jeg har dette i min html:<param FlashVars="mp3File=urlfilminfil.mp3">
.. FlashVars="mp3File=urlfilminfil.mp3" i embed...
og dette i min flashfil:
btn.onMouseDown = playSound;
function playSound(){
var my_sound:Sound = new Sound();
var mp3File = _root.mp3File;
my_sound.loadSound(mp3File, true);
}
Men _root.mp3File er hele tiden undefined i min function - Hvorfor?
