Document.straightenselection(); Document.swapelement() - 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

document.straightenSelection()

Availability
Flash MX 2004.
Usage
document.straightenSelection()
Parameters
None.
Returns
Nothing.
Description
Method; straightens the currently selected strokes. This method is equivalent to using the
Straighten button in the Tools panel.
Example
The following example straightens the curve of the current selection:
fl.getDocumentDOM().straightenSelection();

document.swapElement()

Availability
Flash MX 2004.
Usage
document.swapElement( name )
Parameters
A string that specifies the name of the library item to use.
name
Returns
Nothing.
Description
Method; swaps the current selection with the specified one. The selection must contain a graphic,
button, movie clip, video, or bitmap. This method displays an error message if no object is
selected or the given object could not be found.
Example
The following example swaps the current selection with
fl.getDocumentDOM().swapElement('Symbol 1');
from the library:
Symbol 1
Document object
129

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?

Questions and answers

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents