# Sound: change frame when end

**URL:** <https://forum.kirupa.com/t/sound-change-frame-when-end/38668>\
**Category:** Uncategorized\
**Created:** [December 27, 2003, 11:01pm UTC](https://forum.kirupa.com/t/sound-change-frame-when-end/38668 "2003-12-27T23:01:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ignusb](https://avatars.discourse-cdn.com/v4/letter/i/9f8e36/32.png) [@ignusb](https://forum.kirupa.com/u/ignusb)\
**Post date:** [December 27, 2003, 11:01pm UTC](https://forum.kirupa.com/t/sound-change-frame-when-end/38668/1 "2003-12-27T23:01:57Z")

</div>

How do i synchronise a frame to change as soon as a sound ends?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 27, 2003, 11:09pm UTC](https://forum.kirupa.com/t/sound-change-frame-when-end/38668/2 "2003-12-27T23:09:50Z")

</div>

---- WHAT DO YOU KNOW!!! ---- copied and pasted from the HELP FILE

* * *

Sound.onSoundComplete

sound, Sound.onSoundComplete, onSoundComplete

Availability

Flash Player 6.

Usage:

mySoundObject.onSoundComplete = callbackFunction

Parameters

mySoundObject A Sound object.

callbackFunction A function.

Returns

Nothing.

Description

Event; invoked automatically when a sound finishes playing. You can use the onSoundComplete event to trigger events in a movie based on the completion of a sound.

You must create a function that executes when the onSoundComplete event is invoked. You can use either an anonymous function or a named function.

Example

Usage 1: The following example uses an anonymous function:

s = new Sound();  
s.attachSound(“mySound”);  
s.onSoundComplete = function() { trace(“mySound completed”); };  
s.start();  
Usage 2: The following example uses a named function:

function callback1() {  
trace(“mySound completed”);  
}

s = new Sound();  
s.attachSound(“mySound”);

s.onSoundComplete = callback1;

## s.start();

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 28, 2003, 1:39am UTC](https://forum.kirupa.com/t/sound-change-frame-when-end/38668/3 "2003-12-28T01:39:45Z")

</div>

yea, thanx, my help file is absolutly screwed, flash quits every time i try to get into it…
