Frame.elements; Frame.labeltype - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Description
Read-only property; an integer that represents the number of frames in a frame sequence.
Example
The following example stores the number of frames in a frame sequence that starts at first frame
in the top layer in the
var frameSpan =
fl.getDocumentDOM().getTimeline().layers[0].frames[0].duration;

frame.elements

Availability
Flash MX 2004.
Usage
frame.elements
Description
Read-only property; an array of Element objects (see
the order in which they are stored in the FLA file. If there are multiple shapes on the Stage, and
each is ungrouped, Flash treats them as one element. If each shape is grouped, so there are
multiple groups on the Stage, Flash sees them as separate elements. In other words, Flash treats
raw, ungrouped shapes as a single element, regardless of how many separate shapes are on the
Stage. If a frame contains three raw, ungrouped shapes, for example, then
that frame returns a value of 1. Select each shape individually, and group it to work around this
issue.
Example
The following example stores an array of current elements on the top layer, first frame in the
variable:
myElements
var myElements =
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements;

frame.labelType

Availability
Flash MX 2004.
Usage
frame.labelType
Description
Property; a string that specifies the type of Frame name. Valid values are
, and
"comment"
variable:
frameSpan
. Setting a label to
"anchor"
Element
object). The order of elements is
clears the
"none"
frame.name
in
elements.length
,
,
"none"
"name"
property.
Frame object
187

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents