# Flash 8 - Synch Audio to SWF -- Please help!

**URL:** <https://forum.kirupa.com/t/flash-8-synch-audio-to-swf-please-help/255855>\
**Category:** flash\
**Created:** [March 27, 2008, 4:48pm UTC](https://forum.kirupa.com/t/flash-8-synch-audio-to-swf-please-help/255855 "2008-03-27T16:48:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpot](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mpot](https://forum.kirupa.com/u/mpot)\
**Post date:** [March 27, 2008, 4:48pm UTC](https://forum.kirupa.com/t/flash-8-synch-audio-to-swf-please-help/255855/1 "2008-03-27T16:48:37Z")

</div>

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…

```auto
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!
