Hello,
I have created some external .swf’s that have audio actionscripted onto them. Here is my code for that–and my play and pause buttons for the audio…
soundTest = new Sound(this);
soundTest.attachSound("section1");
soundTest.start();
clipLength.text = soundTest.duration/1000+" s";
pauseClip.onPress = function() {
pausePositionS = soundTest.position/1000;
soundTest.stop();
};
startClip.onPress = function() {
if (soundTest.position == soundTest.duration) {
soundTest.start();
} else {
soundTest.start(pausePositionS);
}
};
startClip.onEnterFrame = function() {
currentPosition.text = soundTest.position/1000;
};
The audio works fine in Flash8 but when I export it different browsers are dropping frames of flash and the audio isn’t synching up. Is there an easy way to synch the audio??
Since I need play and pause buttons I can’t simply put the audio file on the timeline and hit synch in the properties panel. Is there a way to define synching in actionscript for my code above??
Someone please help!