Question
Undefined sound.duration?
I've got a math lesson that I'm playing some feedback audio
(short narration) using mySound.attachSound("linkage") and I want
to make the buttons on stage not accessible until after the
feedback.
I used delay=mySound.duration to get the duration of the sound and then I use setTimeout(enableButtons,delay);
It works fine in the testing environment or when I play just the published swf. But if I load that swf into an empty movieclip, mySound.duration returns "undefined." The sound does still play and the scoping is correct. Anybody have any ideas?
I used delay=mySound.duration to get the duration of the sound and then I use setTimeout(enableButtons,delay);
It works fine in the testing environment or when I play just the published swf. But if I load that swf into an empty movieclip, mySound.duration returns "undefined." The sound does still play and the scoping is correct. Anybody have any ideas?