PlayerEvent.hx 1.2 KB

1234567891011121314151617181920212223242526272829
  1. //
  2. // WAV/AU Flash player with resampler
  3. //
  4. // Copyright (c) 2009, Anton Fedorov <datacompboy@call2ru.com>
  5. //
  6. /* This code is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License version 2 only, as
  8. * published by the Free Software Foundation.
  9. *
  10. * This code is distributed in the hope that it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  13. * version 2 for more details (a copy is included in the LICENSE file that
  14. * accompanied this code).
  15. */
  16. // Events, fired by Player to notify about it state
  17. class PlayerEvent extends flash.events.Event {
  18. static public inline var BUFFERING : String = "PLAYER_BUFFERING";
  19. static public inline var PLAYING : String = "PLAYER_PLAYING";
  20. static public inline var PAUSED : String = "PLAYER_PAUSED";
  21. static public inline var STOPPED : String = "PLAYER_STOPPED";
  22. public var position : Null<Float>;
  23. public function new(type : String, ?position : Float, ?bubbles : Bool, ?cancelable : Bool) {
  24. super(type, bubbles, cancelable);
  25. this.position = position;
  26. }
  27. }