/data/completions/frameworks/flash_cs3/fl/containers/UILoader.as

https://github.com/vizio360/SublimeAS3-1
ActionScript | 62 lines | 62 code | 0 blank | 0 comment | 0 complexity | 39636236c9855ee261730ebabf9f7a40 MD5 | raw file
  1. package fl.containers
  2. {
  3. import fl.core.InvalidationType;
  4. import fl.core.UIComponent;
  5. import fl.events.ComponentEvent;
  6. import flash.display.DisplayObject;
  7. import flash.display.Graphics;
  8. import flash.display.Loader;
  9. import flash.display.LoaderInfo;
  10. import flash.display.Shape;
  11. import flash.display.Sprite;
  12. import flash.events.Event;
  13. import flash.events.ProgressEvent;
  14. import flash.events.SecurityErrorEvent;
  15. import flash.events.IOErrorEvent;
  16. import flash.events.HTTPStatusEvent;
  17. import flash.net.URLRequest;
  18. import flash.system.ApplicationDomain;
  19. import flash.system.LoaderContext;
  20. import flash.utils.ByteArray;
  21. public class UILoader extends UIComponent
  22. {
  23. protected var _scaleContent : Boolean;
  24. protected var _autoLoad : Boolean;
  25. protected var contentInited : Boolean;
  26. protected var _source : Object;
  27. protected var loader : Loader;
  28. protected var _maintainAspectRatio : Boolean;
  29. protected var contentClip : Sprite;
  30. private static var defaultStyles : Object;
  31. public function get autoLoad () : Boolean;
  32. public function set autoLoad (value:Boolean) : Void;
  33. public function get scaleContent () : Boolean;
  34. public function set scaleContent (value:Boolean) : Void;
  35. public function get maintainAspectRatio () : Boolean;
  36. public function set maintainAspectRatio (value:Boolean) : Void;
  37. public function get bytesLoaded () : uint;
  38. public function get bytesTotal () : uint;
  39. public function get content () : DisplayObject;
  40. public function get source () : Object;
  41. public function set source (value:Object) : Void;
  42. public function get percentLoaded () : Number;
  43. public static function getStyleDefinition () : Object;
  44. public function UILoader ();
  45. public function setSize (w:Number, h:Number) : void;
  46. public function loadBytes (bytes:ByteArray, context:LoaderContext = null) : void;
  47. public function load (request:URLRequest =null, context:LoaderContext = null) : void;
  48. public function unload () : void;
  49. public function close () : void;
  50. protected function _unload (throwError:Boolean =false) : void;
  51. protected function initLoader () : void;
  52. protected function handleComplete (event:Event) : void;
  53. protected function passEvent (event:Event) : void;
  54. protected function handleError (event:Event) : void;
  55. protected function handleInit (event:Event) : void;
  56. protected function clearLoadEvents () : void;
  57. protected function draw () : void;
  58. protected function drawLayout () : void;
  59. protected function sizeContent (target:DisplayObject, contentWidth:Number, contentHeight:Number, targetWidth:Number, targetHeight:Number) : void;
  60. protected function configUI () : void;
  61. }
  62. }