ActionScript 2.0 Components Language Reference |
|
|
|
| Form class > Form.visible | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
myForm.visible
Property; determines whether myForm is visible when its parent form, slide, movie clip, or 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 true, myForm receives a reveal event; when set to false, myForm receives a hide event. You can attach transitions to forms that execute when a form receives one of these events. For more information on adding transitions to screens, see "Creating controls and transitions for screens with behaviors" in Using Flash.
The following code, on a timeline frame, sets the visible property of the form that contains the button to false.
btnOk.addEventListener("click", btnOkClick);
function btnOkClick(eventObj:Object):Void {
eventObj.target._parent.visible = false;
}
|
|
|
|