Example
In the following example, a reference to the root form of
. If the value assigned to
root
var root:mx.screens.Form = myForm.rootForm;
if(rootForm == myForm) {
trace("myForm is the top form in its tree");
}
Form.visible
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myForm.visible
Description
Property; determines whether
file is visible. You can also set this property using the Property inspector in the Flash
authoring environment.
When this property is set to
receives a
event. You can attach transitions to forms that execute when a form receives one of
hide
these events. For more information on adding transitions to screens, see "Creating controls and
transitions for screens with behaviors (Flash Professional only)" in Using Flash.
Example
The following code, on a Timeline frame, sets the
button to
false
btnOk.addEventListener("click", btnOkClick);
function btnOkClick(eventObj:Object):Void {
eventObj.target._parent.visible = false;
}
440
Chapter 6: Components Dictionary
refers to
root
myForm
,
true
myForm
.
myForm
, then
myForm
myForm
is visible when its parent form, slide, movie clip, or SWF
receives a
reveal
property of the form that contains the
visible
is placed in a variable named
is at the top of its form tree.
event; when set to
false
,
myForm
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers