Form.visible - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

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(root == 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
SWF 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
myForm
hide
receives one of 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
the button to
.
false
btnOk.addEventListener("click", btnOkClick);
function btnOkClick(eventObj:Object):Void {
eventObj.target._parent.visible = false;
}
refers to
root
myForm
is visible when its parent form, slide, movie clip, or
myForm
,
receives a
true
myForm
event. You can attach transitions to forms that execute when a form
is placed in a variable named
myForm
, then
is at the top of its form tree.
myForm
event; when set to
reveal
property of the form that contains
visible
,
false
Form.visible
747

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents