MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 661

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

Advertisement

Screen.indexInParent
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myScreen.indexInParent
Description
Property (read-only); contains the zero-based index of
screens.
Example
The following example displays the relative position of the screen
list of child screens.
var numChildren:Number = myScreen._parent.numChildScreens;
var myIndex:Number = myScreen.indexInParent;
trace("I'm child slide # " + myIndex + " out of " + numChildren + " screens.");
Screen.mouseDown
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
on(mouseDown) {
// your code here
}
listenerObject = new Object();
listenerObject.mouseDown = function(eventObj){
// insert your code here
}
screenObj.addEventListener("mouseDown", listenerObject)
Description
Event; broadcast when the mouse button is pressed over an object (for example, a shape or a
movie clip) directly owned by the 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.
in its parent's list of child
myScreen
myScreen
eventObj
"EventDispatcher
Screen class (Flash Professional only)
in its parent screen's
) to the handler.
661

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents