User Guide
Form class (Flash Professional only) 431
Form parameters
You can set the following authoring parameters for each Form instance in the Property inspector
or in the Component inspector:
autoload indicates whether the content specified by the contentPath parameter should load
automatically (
true), or wait to load until the Loader.load() method is called (false). The
default value is
true.
contentPath specifies the contents of the form. This can be the linkage identifier of a movie clip
or an absolute or relative URL for a SWF or JPEG file to load into the slide. By default, loaded
content is clipped to fit the slide.
visible specifies whether the form is visible (true) or not (false) when it first loads.
Form class (Flash Professional only)
Inheritance MovieClip > UIObject class > UIComponent class > View > Loader component >
Screen class (Flash Professional only) > Form
ActionScript Class Name mx.screens.Form
The Form class provides the runtime behavior of forms you create in the Screen Outline pane in
Flash MX Professional 2004.
Method summary for the Form class
The following table lists methods of the Form class.
Methods inherited from the UIObject class
The following table lists the methods the Form class inherits from the UIObject class. When
calling these methods from the Form object, use the syntax
formInstance.methodName.
Method Description
Form.getChildForm() Returns the child form at a specified index.
Method Description
UIObject.createClassObject() Creates an object on the specified class.
UIObject.createObject() Creates a subobject on an object.
UIObject.destroyObject() Destroys a component instance.
UIObject.doLater() Calls a function when parameters have been set in the Property and
Component inspectors.
UIObject.getStyle() Gets the style property from the style declaration or object.
UIObject.invalidate() Marks the object so it will be redrawn on the next frame interval.
UIObject.move() Moves the object to the requested position.
UIObject.redraw() Forces validation of the object so it is drawn in the current frame.
UIObject.setSize() Resizes the object to the requested size.