In AS 3.0, if you do want to pass params in your Events you can create your own custom events:

Actionscript:
  1. package{
  2.  
  3. import flash.events.Event;
  4.  
  5. class CustomEvent extends Event{
  6.  
  7. public static const MOUSE_DOWN:String = "onMouseDown";
  8.  
  9. public var myString:String;
  10.  
  11. public function CustomEvent( type:String, str:String ){
  12. myString = str;
  13. super( type );
  14. }//...
  15.  
  16. /*_______you then dispatch this like this______*/
  17.  
  18. //in hboxvar
  19. //you would have to import your custom event
  20. dispatchEvent( new CustomEvent( CustomEvent.MOUSE_DOWN, "1,2,3") )
  21.  
  22. //again you would need to import your custom event
  23. hboxvar.addEventListener( CustomEvent.MOUSE_DOWN, dosomething );
  24.  
  25. private function dosomething( event:CustomEvent ):Void{
  26. trace( event.myString ) // output: 1,2,3
  27. }

another interesting approach can be found here, where flep assigns multiple event types to one custom event, to have more variety in eventHandling.

But probably the most flexible of solutions is to add to the custom Event an Array, as Parameter, alllowing multiple parameters to be passed on when dispatched.

comment: display CustomEvent classÂ