Document.selectnone() - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

//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
Example
The following example deselects any items that are selected:
fl.getDocumentDOM().selectNone();
114
Chapter 3: Objects
document.selection
and
document.selectAll()
.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents