User Guide
597
Example
This statement opens the Flash Settings panel with the Local Storage tab active:
sprite(3).settingsPanel(1)
See also
on mouseDown (event handler), rightMouseDown (system property), controlDown
setTrackEnabled
Syntax
sprite(whichSprite).setTrackEnabled(whichTrack, trueOrFalse )
setTrackEnabled(sprite whichSprite, whichTrack, trueOrFalse)
Description
Command; determines whether the specified track in the digital video is enabled to play.
• When setTrackEnabled is TRUE, the specified track is enabled and playing.
• When setTrackEnabled is FALSE, the specified track is disabled and muted. For video tracks, this
means they will no longer be updated on the screen.
To test whether a track is already enabled, test the
trackEnabled sprite property.
Example
This statement enables track 3 of the digital video assigned to sprite channel 8:
sprite(8).setTrackEnabled(3, TRUE)
See also
trackEnabled
setVariable()
Syntax
setVariable(sprite flashSpriteNum, "variableName", newValue)
Description
Function; sets the value of the given variable in the given Flash sprite. Flash variables were
introduced in Flash version 4.
Example
The following statement sets the value of the variable currentURL in the Flash cast member in
sprite 3. The new value of currentURL will be “http://www.macromedia.com/software/flash/”.
setVariable(sprite 3, "currentURL", "http://www.macromedia.com/software/flash/")
See also
hitTest(), getVariable()