property pSoundChannel -- sound channel to check property pWhichFrame -- frame to go to when sound stops ----------------------------------------------------- -- This behavior keeps the playhead on the same -- frame while a sound in a specified channel -- is playing. When the sound stops, the playhead -- will go to a specified marker. -- -- Attach this Behavior to a Frame Script. -- Ken Loge - http://diginoodles.com ----------------------------------------------------- on getPropertyDescriptionList me list = [:] addProp list, #pSoundChannel, [#comment: "Sound channel to check for playback:", #format: #integer, #default: 1, #range: [#min: 1, #max: 16]] addProp list, #pWhichFrame, [#comment: "Marker to go to when sound stops:", #format: #marker, #default: ""] return list end on exitFrame me if sound(pSoundChannel).status = 3 then -- the sound is playing, so stay on the frame _movie.go(_movie.frame) else -- the sound is done, so move on _movie.go(pWhichFrame) end if end