Posted By

hoss on 07/09/10


Tagged


Versions (?)

Podium custom event


 / Published in: ActionScript 3
 

what package structure are you using Ben?

  1. package com.medini.events
  2. {
  3. import flash.events.Event;
  4.  
  5. public class StringEvent extends Event
  6. {
  7. private var _value : String;
  8.  
  9. public function StringEvent(value : String, type : String, bubbles : Boolean = false, cancelable : Boolean = false)
  10. {
  11. _value = value;
  12. super(type, bubbles, cancelable);
  13. }
  14.  
  15. public function get value() : String {
  16. return _value;
  17. }
  18.  
  19. public function set value(value : String) : void {
  20. _value = value;
  21. }
  22.  
  23. public override function clone() : Event
  24. {
  25. return new StringEvent(value, type, bubbles, cancelable);
  26. }
  27.  
  28. public override function toString() : String
  29. {
  30. return formatToString("StringEvent", "value", "type", "bubbles", "cancelable");
  31. }
  32. }
  33. }

Report this snippet  

You need to login to post a comment.