View comments | RSS feed

UIObject.hide

Availability

Flash Player 6 (6.0 79.0).

Edition

Flash MX 2004.

Usage

on(hide){
   ...
}
listenerObject = new Object();
listenerObject.hide = function(eventObject){
   ...
}
componentInstance.addEventListener("hide", listenerObject)

Description

Event; broadcast when the object's visible property is changed from true to false.

Example

The following handler displays a message in the Output panel when the object it's attached to becomes invisible.

on(hide) {
   trace("I've become invisible.");
}

See also

UIObject.reveal


Comments


No screen name said on Feb 17, 2006 at 12:09 PM :
When using a Slide or Form and you want to add a listener to the Hide event you should use: [ myFormObject.setVisible(false); ]

Using [ myFormObject._visible = false; ] will not result in a Hide event being dispatched.

If you add a Hide behavior to a slide using the behaviors pannel it will generate script containing the setVisible() method - although this is not listed as a method of the Screen or Form class.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00002939.html