PageRenderTime 59ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/docs/org/tractionas3/load/CoreLoader.html

http://tractionas3.googlecode.com/
HTML | 607 lines | 563 code | 35 blank | 9 comment | 0 complexity | f45d5d99a4153196950b09e6c1ea39fb MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
  6. <link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
  7. <meta content="CoreLoader,org.tractionas3.load.CoreLoader,name,priority,bytesLoaded,bytesTotal,bytesTotalPrefetcher,cancelable,data,loadTime,loaded,loading,progress,url,clone,getURLRequest,listDestructableProperties,load,prefetchBytesTotal,reset,toString" name="keywords">
  8. <title>org.tractionas3.load.CoreLoader</title>
  9. </head>
  10. <body>
  11. <script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
  12. <!--
  13. asdocTitle = 'CoreLoader - TractionAS3 Framework Documentation';
  14. var baseRef = '../../../';
  15. window.onload = configPage;
  16. --></script>
  17. <table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
  18. <tr>
  19. <td align="left" class="titleTableTitle">TractionAS3 Framework Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?org/tractionas3/load/CoreLoader.html&amp;org/tractionas3/load/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
  20. </tr>
  21. <tr class="titleTableRow2">
  22. <td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;CoreLoader</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
  23. </tr>
  24. <tr class="titleTableRow3">
  25. <td colspan="2">&nbsp;</td>
  26. </tr>
  27. </table>
  28. <script type="text/javascript" language="javascript">
  29. <!--
  30. if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class CoreLoader"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
  31. --></script>
  32. <div class="MainContent">
  33. <table cellspacing="0" cellpadding="0" class="classHeaderTable">
  34. <tr>
  35. <td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">org.tractionas3.load</a></td>
  36. </tr>
  37. <tr>
  38. <td class="classHeaderTableLabel">Class</td><td class="classSignature">public class CoreLoader</td>
  39. </tr>
  40. <tr>
  41. <td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">CoreLoader <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> <a href="../events/WeakEventDispatcher.html">WeakEventDispatcher</a> <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> <a href="../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a> <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
  42. </tr>
  43. <tr>
  44. <td class="classHeaderTableLabel">Implements</td><td><a href="ILoadable.html">ILoadable</a></td>
  45. </tr>
  46. <tr>
  47. <td class="classHeaderTableLabel">Subclasses</td><td><a href="../load/DisplayLoader.html">DisplayLoader</a>, <a href="../load/SoundLoader.html">SoundLoader</a>, <a href="../load/URLDataLoader.html">URLDataLoader</a>, <a href="../load/VideoLoader.html">VideoLoader</a></td>
  48. </tr>
  49. </table>
  50. <p></p>
  51. CoreLoader class is the base class of all loader classes.
  52. <p />
  53. Providing core functinality to all loader classes, CoreLoader is the type to reference when dealing with common loader properties
  54. such as <code>name</code> and <code>priority</code>.
  55. <p />
  56. <p></p>
  57. <br>
  58. <hr>
  59. </div>
  60. <a name="propertySummary"></a>
  61. <div class="summarySection">
  62. <div class="summaryTableTitle">Public Properties</div>
  63. <table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
  64. <tr>
  65. <th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
  66. </tr>
  67. <tr class="">
  68. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesLoaded">bytesLoaded</a> : uint<div class="summaryTableDescription">[read-only]
  69. Indicates the number of loaded bytes from the loaders target file.</div>
  70. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  71. </tr>
  72. <tr class="">
  73. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesTotal">bytesTotal</a> : int<div class="summaryTableDescription">[read-only]
  74. Indicates the number of total bytes of the loaders target file.</div>
  75. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  76. </tr>
  77. <tr class="">
  78. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesTotalPrefetcher">bytesTotalPrefetcher</a> : <a href="../load/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a>
  79. <div class="summaryTableDescription">[read-only]
  80. Returns the bytesTotal prefetcher instance.</div>
  81. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  82. </tr>
  83. <tr class="">
  84. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#cancelable">cancelable</a> : Boolean<div class="summaryTableDescription">[read-only]
  85. Indicates whether the loader is cancelable.</div>
  86. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  87. </tr>
  88. <tr class="">
  89. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#data">data</a> : *<div class="summaryTableDescription">[read-only]
  90. Returns the loaded data of the CoreLoader.</div>
  91. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  92. </tr>
  93. <tr class="">
  94. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#loaded">loaded</a> : Boolean<div class="summaryTableDescription">[read-only]
  95. Indicates whether the loading process has finished.</div>
  96. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  97. </tr>
  98. <tr class="">
  99. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#loading">loading</a> : Boolean<div class="summaryTableDescription">[read-only]
  100. Indicates whether the loading process is running.</div>
  101. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  102. </tr>
  103. <tr class="">
  104. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#loadTime">loadTime</a> : uint<div class="summaryTableDescription">[read-only]
  105. Indicates, in milliseconds, the time elapsed from loading start to loading completion.</div>
  106. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  107. </tr>
  108. <tr class="">
  109. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#name">name</a> : String<div class="summaryTableDescription">
  110. Specifies the name of the loader.</div>
  111. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  112. </tr>
  113. <tr class="">
  114. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#priority">priority</a> : uint = 0<div class="summaryTableDescription">
  115. Defines the priority of the loader.</div>
  116. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  117. </tr>
  118. <tr class="">
  119. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#progress">progress</a> : Number<div class="summaryTableDescription">[read-only]
  120. Returns a value between zero and one indicating the current loading progress of the loader.</div>
  121. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  122. </tr>
  123. <tr class="">
  124. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#url">url</a> : String<div class="summaryTableDescription"></div>
  125. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  126. </tr>
  127. </table>
  128. </div>
  129. <a name="methodSummary"></a>
  130. <div class="summarySection">
  131. <div class="summaryTableTitle">Public Methods</div>
  132. <div class="showHideLinks">
  133. <div class="hideInheritedMethod" id="hideInheritedMethod">
  134. <a onclick="javascript:setInheritedVisible(false,'Method');" href="#methodSummary" class="showHideLink"><img src="../../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Methods</a>
  135. </div>
  136. <div class="showInheritedMethod" id="showInheritedMethod">
  137. <a onclick="javascript:setInheritedVisible(true,'Method');" href="#methodSummary" class="showHideLink"><img src="../../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Methods</a>
  138. </div>
  139. </div>
  140. <table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
  141. <tr>
  142. <th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
  143. </tr>
  144. <tr class="">
  145. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  146. <div class="summarySignature">
  147. <a class="signatureLink" href="#CoreLoader()">CoreLoader</a>(url:String = null, loaderName:String = null)</div>
  148. <div class="summaryTableDescription">
  149. Creates a new CoreLoader object.</div>
  150. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  151. </tr>
  152. <tr class="hideInheritedMethod">
  153. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
  154. <div class="summarySignature">
  155. <a class="signatureLink" href="../events/WeakEventDispatcher.html#addEventListener()">addEventListener</a>(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = true):void</div>
  156. <div class="summaryTableDescription">
  157. Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.</div>
  158. </td><td class="summaryTableOwnerCol"><a href="../events/WeakEventDispatcher.html">WeakEventDispatcher</a></td>
  159. </tr>
  160. <tr class="">
  161. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  162. <div class="summarySignature">
  163. <a class="signatureLink" href="#clone()">clone</a>():<a href="../core/interfaces/ICloneable.html">ICloneable</a>
  164. </div>
  165. <div class="summaryTableDescription">
  166. Creates a duplicate of the instance.</div>
  167. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  168. </tr>
  169. <tr class="hideInheritedMethod">
  170. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
  171. <div class="summarySignature">
  172. <a class="signatureLink" href="../events/ClearableEventDispatcher.html#destruct()">destruct</a>(deepDestruct:Boolean = false):void</div>
  173. <div class="summaryTableDescription">
  174. Destructs implementing instance of specified properties.</div>
  175. </td><td class="summaryTableOwnerCol"><a href="../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a></td>
  176. </tr>
  177. <tr class="hideInheritedMethod">
  178. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
  179. <div class="summarySignature">
  180. <a class="signatureLink" href="../events/WeakEventDispatcher.html#dispatchEvent()">dispatchEvent</a>(e:Event):Boolean</div>
  181. <div class="summaryTableDescription">
  182. Dispatches an event into the event flow, <i>only</i> if event property <code>hasEventListener</code> or <code>bubbles</code> are <code>true</code>.</div>
  183. </td><td class="summaryTableOwnerCol"><a href="../events/WeakEventDispatcher.html">WeakEventDispatcher</a></td>
  184. </tr>
  185. <tr class="">
  186. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  187. <div class="summarySignature">
  188. <a class="signatureLink" href="#getURLRequest()">getURLRequest</a>():URLRequest</div>
  189. <div class="summaryTableDescription">
  190. Returns the <code>URLRequest</code> of the loader.</div>
  191. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  192. </tr>
  193. <tr class="">
  194. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  195. <div class="summarySignature">
  196. <a class="signatureLink" href="#listDestructableProperties()">listDestructableProperties</a>():Array</div>
  197. <div class="summaryTableDescription">
  198. Specifies an array of strings representing properties that are to be
  199. nullified or reset upon destruction.</div>
  200. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  201. </tr>
  202. <tr class="">
  203. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  204. <div class="summarySignature">
  205. <a class="signatureLink" href="#load()">load</a>(newURL:String = null):void</div>
  206. <div class="summaryTableDescription">
  207. Initiates the loading process of the loader.</div>
  208. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  209. </tr>
  210. <tr class="">
  211. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  212. <div class="summarySignature">
  213. <a class="signatureLink" href="#prefetchBytesTotal()">prefetchBytesTotal</a>():void</div>
  214. <div class="summaryTableDescription">
  215. Instructs the loader to prefech the total file size of target file without having to start the actual loading progress.</div>
  216. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  217. </tr>
  218. <tr class="hideInheritedMethod">
  219. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
  220. <div class="summarySignature">
  221. <a class="signatureLink" href="../events/ClearableEventDispatcher.html#removeAllEventListeners()">removeAllEventListeners</a>():void</div>
  222. <div class="summaryTableDescription">
  223. Removes all event listeners from the IClearableEventDispatcher object.</div>
  224. </td><td class="summaryTableOwnerCol"><a href="../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a></td>
  225. </tr>
  226. <tr class="hideInheritedMethod">
  227. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
  228. <div class="summarySignature">
  229. <a class="signatureLink" href="../events/ClearableEventDispatcher.html#removeEventListener()">removeEventListener</a>(type:String, listener:Function, useCapture:Boolean = false):void</div>
  230. <div class="summaryTableDescription">
  231. Removes a listener from the EventDispatcher object.</div>
  232. </td><td class="summaryTableOwnerCol"><a href="../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a></td>
  233. </tr>
  234. <tr class="">
  235. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  236. <div class="summarySignature">
  237. <a class="signatureLink" href="#reset()">reset</a>():void</div>
  238. <div class="summaryTableDescription">
  239. Resets the loader and its properties to what they were upon instantiation.</div>
  240. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  241. </tr>
  242. <tr class="">
  243. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  244. <div class="summarySignature">
  245. <a class="signatureLink" href="#toString()">toString</a>():String</div>
  246. <div class="summaryTableDescription">
  247. Returns the string representation of the instance.</div>
  248. </td><td class="summaryTableOwnerCol">CoreLoader</td>
  249. </tr>
  250. </table>
  251. </div>
  252. <script type="text/javascript" language="javascript">
  253. <!--
  254. showHideInherited();
  255. --></script>
  256. <div class="MainContent">
  257. <a name="propertyDetail"></a>
  258. <div class="detailSectionHeader">Property detail</div>
  259. <a name="bytesLoaded"></a>
  260. <table cellspacing="0" cellpadding="0" class="detailHeader">
  261. <tr>
  262. <td class="detailHeaderName">bytesLoaded</td><td class="detailHeaderType">property</td>
  263. </tr>
  264. </table>
  265. <div class="detailBody">
  266. <code>bytesLoaded:uint</code>&nbsp;&nbsp;[read-only]<p>
  267. Indicates the number of loaded bytes from the loaders target file.
  268. </p><span class="label">Implementation</span>
  269. <br>
  270. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get bytesLoaded():uint</code>
  271. <br>
  272. </div>
  273. <a name="bytesTotal"></a>
  274. <table cellspacing="0" cellpadding="0" class="detailHeader">
  275. <tr>
  276. <td class="detailHeaderName">bytesTotal</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  277. </tr>
  278. </table>
  279. <div class="detailBody">
  280. <code>bytesTotal:int</code>&nbsp;&nbsp;[read-only]<p>
  281. Indicates the number of total bytes of the loaders target file.
  282. </p><span class="label">Implementation</span>
  283. <br>
  284. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get bytesTotal():int</code>
  285. <br>
  286. </div>
  287. <a name="bytesTotalPrefetcher"></a>
  288. <table cellspacing="0" cellpadding="0" class="detailHeader">
  289. <tr>
  290. <td class="detailHeaderName">bytesTotalPrefetcher</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  291. </tr>
  292. </table>
  293. <div class="detailBody">
  294. <code>bytesTotalPrefetcher:<a href="../load/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a></code>&nbsp;&nbsp;[read-only]<p>
  295. Returns the bytesTotal prefetcher instance.
  296. </p><span class="label">Implementation</span>
  297. <br>
  298. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get bytesTotalPrefetcher():<a href="../load/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a></code>
  299. <br>
  300. </div>
  301. <a name="cancelable"></a>
  302. <table cellspacing="0" cellpadding="0" class="detailHeader">
  303. <tr>
  304. <td class="detailHeaderName">cancelable</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  305. </tr>
  306. </table>
  307. <div class="detailBody">
  308. <code>cancelable:Boolean</code>&nbsp;&nbsp;[read-only]<p>
  309. Indicates whether the loader is cancelable. Cancelable loaders may be interrupted while loading.
  310. Note that if you wish to cancel a loading process to resume it later you need to use the <code>reset()</code> method before calling
  311. the <code>load()</code> method again.
  312. </p><span class="label">Implementation</span>
  313. <br>
  314. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get cancelable():Boolean</code>
  315. <br>
  316. </div>
  317. <a name="data"></a>
  318. <table cellspacing="0" cellpadding="0" class="detailHeader">
  319. <tr>
  320. <td class="detailHeaderName">data</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  321. </tr>
  322. </table>
  323. <div class="detailBody">
  324. <code>data:*</code>&nbsp;&nbsp;[read-only]<p>
  325. Returns the loaded data of the CoreLoader.
  326. </p><span class="label">Implementation</span>
  327. <br>
  328. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get data():*</code>
  329. <br>
  330. </div>
  331. <a name="loaded"></a>
  332. <table cellspacing="0" cellpadding="0" class="detailHeader">
  333. <tr>
  334. <td class="detailHeaderName">loaded</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  335. </tr>
  336. </table>
  337. <div class="detailBody">
  338. <code>loaded:Boolean</code>&nbsp;&nbsp;[read-only]<p>
  339. Indicates whether the loading process has finished.
  340. </p><span class="label">Implementation</span>
  341. <br>
  342. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get loaded():Boolean</code>
  343. <br>
  344. </div>
  345. <a name="loading"></a>
  346. <table cellspacing="0" cellpadding="0" class="detailHeader">
  347. <tr>
  348. <td class="detailHeaderName">loading</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  349. </tr>
  350. </table>
  351. <div class="detailBody">
  352. <code>loading:Boolean</code>&nbsp;&nbsp;[read-only]<p>
  353. Indicates whether the loading process is running.
  354. </p><span class="label">Implementation</span>
  355. <br>
  356. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get loading():Boolean</code>
  357. <br>
  358. </div>
  359. <a name="loadTime"></a>
  360. <table cellspacing="0" cellpadding="0" class="detailHeader">
  361. <tr>
  362. <td class="detailHeaderName">loadTime</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  363. </tr>
  364. </table>
  365. <div class="detailBody">
  366. <code>loadTime:uint</code>&nbsp;&nbsp;[read-only]<p>
  367. Indicates, in milliseconds, the time elapsed from loading start to loading completion.
  368. </p><span class="label">Implementation</span>
  369. <br>
  370. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get loadTime():uint</code>
  371. <br>
  372. </div>
  373. <a name="name"></a>
  374. <table cellspacing="0" cellpadding="0" class="detailHeader">
  375. <tr>
  376. <td class="detailHeaderName">name</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  377. </tr>
  378. </table>
  379. <div class="detailBody">
  380. <code>public var name:String</code><p>
  381. Specifies the name of the loader.
  382. </p></div>
  383. <a name="priority"></a>
  384. <table cellspacing="0" cellpadding="0" class="detailHeader">
  385. <tr>
  386. <td class="detailHeaderName">priority</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  387. </tr>
  388. </table>
  389. <div class="detailBody">
  390. <code>public var priority:uint = 0</code><p>
  391. Defines the priority of the loader.
  392. Loaders with a low priority value will be loaded before loaders with a higher priority value
  393. in a loader queue.
  394. </p><p>
  395. <span class="label">See also</span>
  396. </p>
  397. <div class="seeAlso">
  398. <a href="../load/LoaderQueue.html" target="">org.tractionas3.load.LoaderQueue</a>
  399. </div>
  400. </div>
  401. <a name="progress"></a>
  402. <table cellspacing="0" cellpadding="0" class="detailHeader">
  403. <tr>
  404. <td class="detailHeaderName">progress</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  405. </tr>
  406. </table>
  407. <div class="detailBody">
  408. <code>progress:Number</code>&nbsp;&nbsp;[read-only]<p>
  409. Returns a value between zero and one indicating the current loading progress of the loader.
  410. </p><span class="label">Implementation</span>
  411. <br>
  412. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get progress():Number</code>
  413. <br>
  414. </div>
  415. <a name="url"></a>
  416. <table cellspacing="0" cellpadding="0" class="detailHeader">
  417. <tr>
  418. <td class="detailHeaderName">url</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  419. </tr>
  420. </table>
  421. <div class="detailBody">
  422. <code>url:String</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
  423. <br>
  424. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get url():String</code>
  425. <br>
  426. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function set url(value:String):void</code>
  427. <br>
  428. </div>
  429. <a name="constructorDetail"></a>
  430. <div class="detailSectionHeader">Constructor detail</div>
  431. <a name="CoreLoader()"></a>
  432. <table cellspacing="0" cellpadding="0" class="detailHeader">
  433. <tr>
  434. <td class="detailHeaderName">CoreLoader</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
  435. </tr>
  436. </table>
  437. <div class="detailBody">
  438. <code>public function CoreLoader(url:String = null, loaderName:String = null)</code><p>
  439. Creates a new CoreLoader object.
  440. </p><span class="label">Parameters</span>
  441. <table border="0" cellspacing="0" cellpadding="0">
  442. <tr>
  443. <td width="20px"></td><td><code><span class="label">url</span>:String</code> (default = <code>null</code>)<code></code> &mdash; The URL from wich the data should be loaded.
  444. </td>
  445. </tr>
  446. <tr>
  447. <td class="paramSpacer">&nbsp;</td>
  448. </tr>
  449. <tr>
  450. <td width="20px"></td><td><code><span class="label">loaderName</span>:String</code> (default = <code>null</code>)<code></code> &mdash; Assigned name to the loader.
  451. </td>
  452. </tr>
  453. </table>
  454. </div>
  455. <a name="methodDetail"></a>
  456. <div class="detailSectionHeader">Method detail</div>
  457. <a name="clone()"></a>
  458. <table cellspacing="0" cellpadding="0" class="detailHeader">
  459. <tr>
  460. <td class="detailHeaderName">clone</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
  461. </tr>
  462. </table>
  463. <div class="detailBody">
  464. <code>public function clone():<a href="../core/interfaces/ICloneable.html">ICloneable</a></code><p>
  465. Creates a duplicate of the instance.
  466. </p><p></p>
  467. <span class="label">Returns</span>
  468. <table border="0" cellspacing="0" cellpadding="0">
  469. <tr>
  470. <td width="20"></td><td><code><a href="../core/interfaces/ICloneable.html">ICloneable</a></code></td>
  471. </tr>
  472. </table>
  473. </div>
  474. <a name="getURLRequest()"></a>
  475. <table cellspacing="0" cellpadding="0" class="detailHeader">
  476. <tr>
  477. <td class="detailHeaderName">getURLRequest</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  478. </tr>
  479. </table>
  480. <div class="detailBody">
  481. <code>public final function getURLRequest():URLRequest</code><p>
  482. Returns the <code>URLRequest</code> of the loader. The <code>URLRequest</code> cannot be changed.
  483. </p><p></p>
  484. <span class="label">Returns</span>
  485. <table border="0" cellspacing="0" cellpadding="0">
  486. <tr>
  487. <td width="20"></td><td><code>URLRequest</code></td>
  488. </tr>
  489. </table>
  490. </div>
  491. <a name="listDestructableProperties()"></a>
  492. <table cellspacing="0" cellpadding="0" class="detailHeader">
  493. <tr>
  494. <td class="detailHeaderName">listDestructableProperties</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  495. </tr>
  496. </table>
  497. <div class="detailBody">
  498. <code>public override function listDestructableProperties():Array</code><p>
  499. Specifies an array of strings representing properties that are to be
  500. nullified or reset upon destruction. Applies to public properties <b>only</b>
  501. </p><p></p>
  502. <span class="label">Returns</span>
  503. <table border="0" cellspacing="0" cellpadding="0">
  504. <tr>
  505. <td width="20"></td><td><code>Array</code></td>
  506. </tr>
  507. </table>
  508. </div>
  509. <a name="load()"></a>
  510. <table cellspacing="0" cellpadding="0" class="detailHeader">
  511. <tr>
  512. <td class="detailHeaderName">load</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  513. </tr>
  514. </table>
  515. <div class="detailBody">
  516. <code>public function load(newURL:String = null):void</code><p>
  517. Initiates the loading process of the loader. A new URLRequest cannot be defined through this method.
  518. </p><span class="label">Parameters</span>
  519. <table border="0" cellspacing="0" cellpadding="0">
  520. <tr>
  521. <td width="20px"></td><td><code><span class="label">newURL</span>:String</code> (default = <code>null</code>)<code></code></td>
  522. </tr>
  523. </table>
  524. </div>
  525. <a name="prefetchBytesTotal()"></a>
  526. <table cellspacing="0" cellpadding="0" class="detailHeader">
  527. <tr>
  528. <td class="detailHeaderName">prefetchBytesTotal</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  529. </tr>
  530. </table>
  531. <div class="detailBody">
  532. <code>public final function prefetchBytesTotal():void</code><p>
  533. Instructs the loader to prefech the total file size of target file without having to start the actual loading progress.
  534. </p></div>
  535. <a name="reset()"></a>
  536. <table cellspacing="0" cellpadding="0" class="detailHeader">
  537. <tr>
  538. <td class="detailHeaderName">reset</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  539. </tr>
  540. </table>
  541. <div class="detailBody">
  542. <code>public function reset():void</code><p>
  543. Resets the loader and its properties to what they were upon instantiation.
  544. </p></div>
  545. <a name="toString()"></a>
  546. <table cellspacing="0" cellpadding="0" class="detailHeader">
  547. <tr>
  548. <td class="detailHeaderName">toString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  549. </tr>
  550. </table>
  551. <div class="detailBody">
  552. <code>public override function toString():String</code><p>
  553. Returns the string representation of the instance.
  554. </p><p></p>
  555. <span class="label">Returns</span>
  556. <table border="0" cellspacing="0" cellpadding="0">
  557. <tr>
  558. <td width="20"></td><td><code>String</code></td>
  559. </tr>
  560. </table>
  561. </div>
  562. <br>
  563. <br>
  564. <hr>
  565. <br>
  566. <p></p>
  567. <center class="copyright">
  568. </center>
  569. </div>
  570. </body>
  571. </html>
  572. <!-- -->