beautypg.com

Fl.isfontinstalled() – Adobe Extending Flash Professional CS5 User Manual

Page 261

background image

239

EXTENDING FLASH PROFESSIONAL

flash object (fl)

Last updated 5/2/2011

Parameters
None.

Returns
An array of generic objects corresponding to the list of installed Flash Players in the document PI.

Description
Read-only property; The array of generic objects corresponding to the list of installed Flash Players in the document PI.

Each object in the array contains the following properties:

name

The string name of the document.

version

Can be used to set the current player for a document, using the

Document.setPlayerVersion()

function.

minASVersion

The minimum ActionScript version required by the document. An integer between the minASVersion

and the maxASVersion (inclusive) can be used to set the ActionScript version of the document, using the

Document.asVersion

property.

maxASVersion

The maximum ActionScript version supported by the document.

stageWidth

The default Stage width in pixels for the given target. For example, for iPhone the default size is 320 x 480

pixels. For Android, the default size is 480 x 800.

stageHeight

The default Stage height in pixels for the given target. For example, for iPhone the default size is 320 x

480 pixels. For Android, the default size is 480 x 800.

Example
The following example traces the properties of all objects in the

installedPlayers

array to the output window:

var arr = fl.installedPlayers;

for (var i in arr) fl.trace("name: " + arr[i].name + " version: " + arr[i].version + "
minASVersion: " + arr[i].minASVersion + " maxASVersion: " + arr[i].maxASVersion + " stageWidth:
" + arr[i].stageWidth + " stageHeight: " + arr[i].stageHeight + " ");

fl.isFontInstalled()

Availability
Flash CS4 Professional.

Usage

fl.isFontInstalled(fontName)

Parameters

fontName

A string that specifies the name of a device font.

Returns
A Boolean value of

true

if the specified font is installed;

false

otherwise.

Description
Method; determines whether a specified font is installed.

This manual is related to the following products: