
CHAPTER 4: User-Interface Tools Control objects 145
FlashPlayer control functions
These functions apply only to controls of type flashplayer.
N
OTE: There are limitations on how these functions can be used to control playback of Flash movies:
Z Do not use stopMovie() and playMovie() to suspend and subsequently resume or restart an SWF
file produced by Flex™.
Z The stopMovie() and playMovie() sequence does not make sense for some SWF files produced by
Flash Authoring, depending on the exact details of how they were implemented. The sequence
may not correctly reset the file to the initial state (when the
rewind argument to playMovie() is
true) nor suspend then resume the execution of the file (when
rewind is false).
Z Using stopMovie() from the player’s hosting environment has no effect on an SWF file playing in a
ScriptUI Flash Player element. It is, however, possible to produce an SWF using Flash Authoring
that can stop itself in response to user interaction.
Z Do not call playMovie() when an SWF file is already playing.
remove()
containerObj.remove(index)
containerObj.remove(text)
containerObj.remove(child)
index
text
child
The item or child to remove, specified by 0-based index, text value, or as a control object.
For containers (Panel
, Group), removes the specified child control from the container’s children
array.
For list objects (ListBox
, DropDownList or TreeView) only, removes the specified item from this
object’s
items array. No error results if the item does not exist.
Returns
undefined.
removeAll()
listObj.removeAll()
For list objects (ListBox, DropDownList or TreeView) only. Removes all items from the object’s items
array.
Returns
undefined.
revealItem()
listObj.revealItem(item)
item
The item or child to reveal, a control object.
For ListBox
only. Scrolls the list to make the specified item visible, if necessary.
Returns
undefined.
Comentarios a estos manuales