What is bubbles property in Actionscript 3.0 Event ?

When an event occurs, it moves through the three phases of the event flow: the capture phase, which flows from the top of the display list hierarchy to the node just before the target node; the target phase, which comprises the target node; and the bubbling phase, which flows from the node subsequent to the target node back up the display list hierarchy.

AS3 button click events vs As2 button click events example

this is a simple button tutorials for As3 beginners.

A simple As2 buttonClick

on(press){

trace("Clicked");

}


Or

[button].onPress=function(){

trace("clicked");

}

In as3

simple one

[button].addEventListener(MouseEvent.CLICK,function(){trace("clicked")});

or

function buttonClick(evt:MouseEvent) {

trace("clicked");

}

[button].addEventListener(MouseEvent.CLICK,buttonClick);


so what is in "evt:MouseEvent"?. just try this one

function buttonClick(evt:MouseEvent) {

trace(evt.target.name);

}

[button].addEventListener(MouseEvent.CLICK,buttonClick);

This event has the following properties:

Property Value
bubbles true
buttonDown true if the primary mouse button is pressed; false otherwise.
cancelable false; there is no default behavior to cancel.
ctrlKey true if the Control key is active; false if it is inactive.
currentTarget The object that is actively processing the Event object with an event listener.
localX The horizontal coordinate at which the event occurred relative to the containing sprite.
localY The vertical coordinate at which the event occurred relative to the containing sprite.
shiftKey true if the Shift key is active; false if it is inactive.
stageX The horizontal coordinate at which the event occurred in global stage coordinates.
stageY The vertical coordinate at which the event occurred in global stage coordinates.
target The InteractiveObject instance under the pointing device. The target is not always the object in the display list that registered the event listener. Use the currentTarget property to access the object in the display list that is currently processing the event.

FEATURE_ERROR_USER_OPEN_NO_ACCESS

Why yahoo says this?
yahoo is upgrading the account settings. if you are getting this error for your yahoo accounts please wait for one or two day it will work fine.


PHP developer Cochin |PHP developer Kerala | PHP developer India | Flash developer/programmer Cochin | Flash developer/programmer Kerala | Flash developer/programmer India | web programmer kerala |web programmer Cochin |web programmer India |web developer kerala |Web developer Cochin | Kerala PHP | PHP freelancer| flash actionscript freelancer