114
Chapter 3: Objects
//begin loop through the elements on a layer
for(var c=0; c < theElems.length; c++){
//checks to see if the element is of type "instance"
if(theElems[c].elementType == "instance"){
//if the element is an instance, it checks if it is an instance of
"myMovieClip"
if(theElems[c].libraryItem.name == "myMovieClip"){
//assigns elements that are instances of "myMovieClip" to "mySelectionArray"
mySelectionArray[x] = theElems[c];
//increments counter variable
x++;
}
}
}
}
// Now that we have assigned all the instances of "myMovieClip"
// to "mySelectionArray", we then set the document.selection array
// equal to mySelectionArray. This selects the objects on stage.
fl.getDocumentDOM().selection = mySelectionArray;
document.selectNone()
Availability
Flash MX 2004.
Usage
document.selectNone()
Parameters
None.
Returns
Nothing.
Description
Method; deselects any selected items. See
document.selection
and
document.selectAll()
.
Example
The following example deselects any items that are selected:
fl.getDocumentDOM().selectNone();
Summary of Contents for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...