registerCuePointCallback

Usage

soundObject.registerCuePointCallback(#symCallback, [castMemRef])

Description

Sound object method; registers the symCallback method as the callback method for the cue points of the sound stream that is playing in the current sound object.

Optionally, you can also pass the reference of a cast member when the callback is to a member of the parent script.

Parameters

Parameter

Description

Required/optional

symcallback

Calls the symbol whenever the cue point is hit.

Required

castMemRef

Passes a cast member reference if the callback method is a member of the parent script.

Optional

Examples

--Lingo syntax 
on mouseUp me 
     soundObjRef.registerCuePointCallback(#callMe) -- Calls the callMe function when the 
-- cue points of the sound object associated with soundObjRef are hit. 
end 
 
// JavaScript syntax 
function mouseUp(){ 
soundObjRef.registerCuePointCallback(#callMe); // Calls the callMe function when the cue 
// points of the sound object associated with soundObjRef are hit. 
}