package {
import org.osflash.signals.events.GenericEvent;
public class CustomEvent extends GenericEvent {
private var _simpleValue:String;
public function get simpleValue() : String { return _simpleValue; }
public function set simpleValue(val:String) : void { _simpleValue = val; }
public function CustomEvent(bubbles:Boolean = true) {
super(bubbles);
}
}
}
In your example below your event would be a CustomEvent and you would do the following...
event.simpleValue = "Hello";
selectSignal.dispatch(event);
Then wherever your handler is...
private function selectSignalHandler(event:CustomEvent) : void {
trace(event.simpleValue);
}
Its a very basic example but you get the idea. You could also ditch the setter and add the value(s) via the CustomEvent constructor and have them as read-only via the getter.
Ben