Asset

An object library asset.

Methods:

extractLabel, getElements, insertLabel, placeAsset, remove, toSource, toSpecifier

Objects:

AssetType, Date, Number, Object, String

Property Listing

Property

Type

Access

Description

assetType

AssetType

AssetType.EPS_TYPE

AssetType.GEOMETRY_TYPE

AssetType.IMAGE_TYPE

AssetType.PAGE_TYPE

AssetType.PDF_TYPE

AssetType.STRUCTURE_TYPE

AssetType.TEXT_TYPE

read/write

The type of object library asset.

date

Date

readonly

The date and time the Asset was created.

description

String

read/write

The description of the Asset.

id

Number

readonly

The unique ID of the Asset.

index

Number

readonly

The index of the Asset within its containing object.

label

String

read/write

A property that can be set to any string.

name

String

read/write

The name of the Asset.

parent

Library

readonly

The parent of the Asset (a Library).

properties

Object

read/write

A property that allows setting of several properties at the same time.

Method Listing

String extractLabel (key:String)

Gets the label value associated with the specified key.

Parameter

Type

Description

key

String

The key.

Object getElements ()

Resolves the object specifier, creating an array of object references.

undefined insertLabel (key:String, value:String)

Sets the label to the value associated with the specified key.

Parameter

Type

Description

key

String

The key.

value

String

The value.

Varies placeAsset (on:Varies Document Text)

Places the asset in the specified document or text.

Parameter

Type

Description

on

Document

Text

The document or text object in which to place the asset. Can accept: Document or Text.

undefined remove ()

Deletes the Asset.

String toSource ()

Generates a string which, if executed, will return the Asset.

String toSpecifier ()

Retrieves the object specifier.

Return

Assets.anyItem()

Assets.everyItem()

Assets.nextItem()

Assets.previousItem()

Assets.itemByID()

Assets.item()

Assets.itemByName()

Assets.itemByRange()

Assets.firstItem()

Assets.lastItem()

Assets.middleItem()

FormField.store()

Button.store()

Movie.store()

Sound.store()

PageItem.store()

Oval.store()

Rectangle.store()

GraphicLine.store()

Polygon.store()

Group.store()

Image.store()

EPS.store()

PDF.store()

WMF.store()

PICT.store()

TextFrame.store()

XMLElement.store()

Library.store()