Document.addnewline(); Document.addnewoval() - 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

The following example adds the symbol
current document:
var itemIndex = fl.getDocumentDOM().library.findItemIndex("myMovieClip");
var theItem = fl.getDocumentDOM().library.items[itemIndex];
fl.getDocumentDOM().addItem({x:0,y:0}, theItem);
The following example adds the symbol
documents array to the third document in the documents array:
var itemIndex = fl.documents[1].library.findItemIndex("myMovieClip");
var theItem = fl.documents[1].library.items[itemIndex];
fl.documents[2].addItem({x:0,y:0}, theItem);

document.addNewLine()

Availability
Flash MX 2004.
Usage
document.addNewLine( startPoint
Parameters
A pair of floating point numbers that specify the x and y coordinates where the line
startpoint
starts.
A pair of floating point numbers that specify the x and y coordinates where the line
endpoint
ends.
Returns
Nothing.
Description
Method; adds a new path between two points. The method uses the document's current stroke
attributes and adds the path on the current frame and current layer. This method works in the
same way as clicking on the line tool and drawing a line.
Example
The following example adds a line between the specified starting point and ending point:
fl.getDocumentDOM().addNewLine({x:216.7, y:122.3}, {x:366.8, y:165.8});

document.addNewOval()

Availability
Flash MX 2004.
Usage
document.addNewOval( boundingRectangle [, bSuppressFill [, bSuppressStroke ]] )
from the current document's library to the
myMovieClip
from the second document in the
myMovieClip
,
endpoint )
Document object
67

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents