Fl.math; Fl.mrurecentfilelist - 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

Example
The following example converts a URL to UTF-8 so the player can load it.
var url = MMExecute( "fl.mapPlayerURL(" + myURL + ", false);" );
mc.loadMovie( url);

fl.Math

Availability
Flash MX 2004.
Usage
fl.Math
Description
Read-only property; the
Example
The following shows the transformation matrix of the selected object, and its inverse.
//Select an element on the stage, then run this script
var mat =fl.getDocumentDOM().selection[0].matrix;
for(var prop in mat){
fl.trace("mat."+prop+" = " + mat[prop]);
}
var invMat = fl.Math.invertMatrix( mat );
for(var prop in invMat) {
fl.trace("invMat."+prop+" = " + invMat[prop]);
}

fl.mruRecentFileList

Availability
Flash MX 2004.
Usage
fl.mruRecentFileList
Description
Read-only property; an array of the complete filenames in the Most Recently Used (MRU) list
that the authoring tool manages.
Example
The following example displays the number of recently opened files, and the name of each file, in
the Output panel.
fl.trace("Number of recently opened files: " + fl.mruRecentFileList.length);
for (i = 0; i < fl.mruRecentFileList.length; i++) fl.trace("file: " +
fl.mruRecentFileList[i]);
172
Chapter 3: Objects
Math object
provides methods for matrix and point operations.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents