Extending Flash |
|
|
|
| Objects > Instance object > instance.instanceType | |||
Flash MX 2004; acceptable value of "video" added in Flash 8.
instance.instanceType
Read-only property; a string that represents the type of instance. Acceptable values are "symbol", "bitmap", "embedded video", "linked video", "video", and "compiled clip".
|
NOTE |
In Flash MX 2004, the value of |
The following example shows that the instance type of a movie clip is "symbol":
// Select a movie clip, and then run this script.
var type = fl.getDocumentDOM().selection[0].instanceType;
fl.trace("This instance type is " + type);
|
|
|
|