Asset

An object library asset.

Methods:

extractLabel, insertLabel, placeAsset, remove

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.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.

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:Document)

Place the asset in a document

Parameter

Type

Description

on

Document

The document in which to place the asset

undefined remove ()

Deletes the Asset.

Return

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()

Library.store()