Item.linkageimportforrs, Item.linkageurl, Item.name – Adobe Extending Flash Professional CS4 User Manual

Page 326: Property must be set to, If you set this property to true, the

Advertising
background image

304

EXTENDING FLASH CS4 PROFESSIONAL

Item object

item.linkageImportForRS

Availability
Flash MX 2004.

Usage

item.linkageImportForRS

Description
Property; a Boolean value: if

true

, the item is imported for run-time sharing. If this property is set to

true

, both

item.linkageExportForAS

and

item.linkageExportForRS

must be set to

false

. Also, you must specify an

identifier (

item.linkageIdentifier

) and a URL (

item.linkageURL

).

Example
The following example sets this property to

true

for the specified library item:

fl.getDocumentDOM().library.items[0].linkageImportForRS = true;

item.linkageURL

Availability
Flash MX 2004.

Usage

item.linkageURL

Description
Property; a string that specifies the URL where the SWF file containing the shared asset is located. Flash ignores this
property if

item.linkageImportForRS

,

item.linkageExportForAS

, and

item.linkageExportForRS

are set to

false

. Conversely, this property must be set when any of those properties are set to

true

. You can specify a web URL

or a filename in platform-dependent format (that is, forward slashes [/] or backward slashes [\], depending on the
platform).

Example
The following example specifies a linkage URL for the specified library item:

fl.getDocumentDOM().library.items[0].linkageURL = "theShareSWF.swf";

See also

item.linkageIdentifier

item.name

Availability
Flash MX 2004.

Advertising