Posted By


jeffnehlsen on 02/17/11

Tagged


Statistics


Viewed 63 times
Favorited by 0 user(s)

CustomDataEvent.as


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



Copy this code and paste it in your HTML
  1. package customEvents
  2. {
  3. import flash.events.Event;
  4.  
  5. public class CustomDataEvent extends Event
  6. {
  7. public static const SAVE_DATA:String = "saveData";
  8. public static const LOAD_DATA:String = "loadData";
  9.  
  10. private var _data:Object;
  11.  
  12. public function CustomDataEvent(type:String, indata:Object, bubbles:Boolean=false, cancelable:Boolean=false)
  13. {
  14. _data = indata;
  15.  
  16. super(type, bubbles, cancelable);
  17. }
  18.  
  19. override public function clone():Event {
  20. return new CustomDataEvent(type, _data, bubbles, cancelable);
  21. }
  22.  
  23. public function get data():Object
  24. {
  25. return _data;
  26. }
  27.  
  28. }
  29. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.