Instance Object - MACROMEDIA FLASH 8-EXTENDING FLASH Manual

Extending flash
Table of Contents

Advertisement

Instance object

Inheritance
Element object
Availability
Flash MX 2004.
Description
Instance is a subclass of the
Property summary for the Instance object
In addition to all of the
Property
instance.instanceType
instance.libraryItem
instance.instanceType
Availability
Flash MX 2004; acceptable value of
Usage
instance.instanceType
Description
Read-only property; a string that represents the type of Instance. Acceptable values are
,
"symbol"
"bitmap"
.
"compiled clip"
In Flash MX 2004, the value of
using
library.addNewItem
See
library.addNewItem()
Example
The following example shows that the instance type of a movie clip is
// Select a movie clip, and then run this script.
var type = fl.getDocumentDOM().selection[0].instanceType;
fl.trace("This instance type is " + type);
294
Objects
CHAPTER 22
> Instance object
Element
object.
Element object
properties, Instance has the following properties:
Description
Read-only; a string that represents the type of Instance.
Library item used to instantiate this instance.
"video"
,
"embedded video"
instance.instanceType
(
) is
"video"
.
added in Flash 8.
,
,
"linked video"
"video"
for an item added to the library
. In Flash 8, the value is
"embedded_video"
Objects
, and
"video"
:
"symbol"
.

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents