MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 665

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

Screen.mouseUpSomewhere
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
on(mouseUpSomewhere) {
// your code here
}
listenerObject = new Object();
listenerObject.mouseUpSomewhere = function(eventObject){
// insert your code here
}
screenObj.addEventListener("mouseUpSomewhere", listenerObject)
Description
Event; broadcast when the mouse button is released, but not necessarily over the specified screen.
When the event is triggered, it automatically passes an event object (
Each event object has properties that contain information about the event. You can use these
properties to write code that handles the event. For more information, see
class" on page
415.
Screen.numChildScreens
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myScreen.numChildScreens
Description
Property (read-only); returns the number of child screens contained by
Example
The following example displays the names of all the child screens that belong to
var howManyKids:Number = myScreen.numChildScreens;
for(i=0; i<howManyKids; i++) {
var childScreen = myScreen.getChildScreen(i);
trace(childScreen._name);
}
eventObj
"EventDispatcher
myScreen
Screen class (Flash Professional only)
) to the handler.
.
.
myScreen
665

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Flash mx

Table of Contents