Page is a not externally linkable
- Code, Content, and Presentation
-- Flash and Shockwave
---- audio file not working after export


kallekalle - 6:23 pm on Sep 5, 2009 (gmt 0)


It should be embedded. I use a flash compatible program called SwishMax.

There is only 1 main movieclip which contains this action script:

onFrame (2) {
mySound=new Sound();
mySound.loadSound("sound.mp3");
mySound.start(0, 5);
}

onFrame (3) {
stop();
}

onFrame (4) {
setLabel("pause");
mySoundPosition=_root.mySound.position/1000;
mySound.stop();
}

onFrame (5) {
stop();
}

onFrame (6) {
setLabel("play");
mySound.start(mySoundPosition,0);
}

Then I have added 2 images which works as pause/play buttons.

It all works great in the preview, and I have tried to look at the export settings, but I cant find any thing missing :-(.

I dont know if its relevant, but the buttons have these action scripts:

Pause:

on (press) {
gotoAndPlay("pause");
}

Play:

on (press) {
gotoAndPlay("play");
}


Thread source:: http://www.webmasterworld.com/flash/3984734.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com