Don -
In the constructor for your custom event you can set the bubbles param
when you call super as in the following example.
import flash.events.Event;
import mx.controls.CheckBox;
public class CheckBoxListEvent extends Event
{
public var data:Object;
public var checkBox:CheckBox;
public function CheckBoxListEvent(type:String, dataObj:Object,
targetCheckBox:CheckBox)
{
super(type, true);
data = dataObj;
checkBox = targetCheckBox;
}
}
hth
Scott
donvoltz wrote:
Hello everyone,
I think the following question is an easy one, however, I can not
seem to find an answer in the documents.
Calling a standard event such as the following
var myEventObj:Event = new CustomEventEvent( "myCustomEvent" );
Will not bubble unless I set the bubble property to true like this
var myEventObj:Event = new CustomEventEvent( "myCustomEvent", true );
How do I allow for bubbling when I call a custom event?
What do I need to change in my event actionscript code to send this
back to my super Event class.
Thanks for the help
Don