i am new to flex, i am working hard to learn event dispatching, i got some knowledge but still not clear. Firstly i started dispatching events between components, later between main application and components, first one works, but later one didn't.
Can you go through it and help me out.
protected function one_clickHandler(event:MouseEvent):void
<mx:checkBox id="one" click="one_clickhandler(event)"/>
<comps:Rectangle id="rect" x="10" y="50" />
public function init():void
public function eventListener(event:Event):void
<s:rect> <s:fill> <s:SolidColor color="blue" alpha="0.3"/>
public class ChangeEvent extends Event
public static const rebates:String = "ChangedEvent";
public function ChangeEvent(type:String)
public override function clone():Event
var event:ChangeEvent = new ChangeEvent(type);
Here while adding the listener i used parent.addeventListener(...) i am not sure when to use parent, while dispatching b/w components this works but not b/w application and component.
Can any one help me out.
What is parent, and why are you hooking up your events that way ?
i think parent refers to the main application, Can you suggest how to hook up event in this scenario