Podium custom event


/ Published in: ActionScript 3
Save to your folder(s)

what package structure are you using Ben?


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.