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

/docs/org/tractionas3/load/loaders/LoaderCore.html

http://tractionas3.googlecode.com/
HTML | 664 lines | 612 code | 43 blank | 9 comment | 0 complexity | 898bc76f808c4c7a40825eea725582ed 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="LoaderCore,org.tractionas3.load.loaders.LoaderCore,bytesLoaded,bytesTotal,bytesTotalPrefetcher,cancelable,data,loadTime,loaded,loading,name,priority,progress,url,clone,destruct,getURLRequest,listDestructableProperties,load,prefetchBytesTotal,reset,toString" name="keywords">
  8. <title>org.tractionas3.load.loaders.LoaderCore</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 = 'LoaderCore - 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/loaders/LoaderCore.html&amp;org/tractionas3/load/loaders/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;LoaderCore</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 LoaderCore"); 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.loaders</a></td>
  36. </tr>
  37. <tr>
  38. <td class="classHeaderTableLabel">Class</td><td class="classSignature">public class LoaderCore</td>
  39. </tr>
  40. <tr>
  41. <td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">LoaderCore <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="../loaders/DisplayLoader.html">DisplayLoader</a>, <a href="../loaders/SoundLoader.html">SoundLoader</a>, <a href="../loaders/URLDataLoader.html">URLDataLoader</a>, <a href="../loaders/VideoLoader.html">VideoLoader</a></td>
  48. </tr>
  49. </table>
  50. <p></p>
  51. LoaderCore class is the base class of all loader classes.
  52. <p />
  53. Providing core functinality to all loader classes, LoaderCore 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. <div class="showHideLinks">
  64. <div class="hideInheritedProperty" id="hideInheritedProperty">
  65. <a onclick="javascript:setInheritedVisible(false,'Property');" href="#propertySummary" class="showHideLink"><img src="../../../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Properties</a>
  66. </div>
  67. <div class="showInheritedProperty" id="showInheritedProperty">
  68. <a onclick="javascript:setInheritedVisible(true,'Property');" href="#propertySummary" class="showHideLink"><img src="../../../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Properties</a>
  69. </div>
  70. </div>
  71. <table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
  72. <tr>
  73. <th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
  74. </tr>
  75. <tr class="">
  76. <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]
  77. Indicates the number of loaded bytes from the loaders target file.</div>
  78. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  79. </tr>
  80. <tr class="">
  81. <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]
  82. Indicates the number of total bytes of the loaders target file.</div>
  83. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  84. </tr>
  85. <tr class="">
  86. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#bytesTotalPrefetcher">bytesTotalPrefetcher</a> : <a href="../loaders/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a>
  87. <div class="summaryTableDescription">[read-only]
  88. Returns the bytesTotal prefetcher instance.</div>
  89. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  90. </tr>
  91. <tr class="">
  92. <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]
  93. Indicates whether the loader is cancelable.</div>
  94. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  95. </tr>
  96. <tr class="">
  97. <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]
  98. Returns the loaded data of the LoaderCore.</div>
  99. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  100. </tr>
  101. <tr class="">
  102. <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]
  103. Indicates whether the loading process has finished.</div>
  104. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  105. </tr>
  106. <tr class="">
  107. <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]
  108. Indicates whether the loading process is running.</div>
  109. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  110. </tr>
  111. <tr class="">
  112. <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]
  113. Indicates, in milliseconds, the time elapsed from loading start to loading completion.</div>
  114. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  115. </tr>
  116. <tr class="">
  117. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#name">name</a> : String<div class="summaryTableDescription">
  118. Specifies the name of the loader.</div>
  119. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  120. </tr>
  121. <tr class="hideInheritedProperty">
  122. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="../../events/ClearableEventDispatcher.html#numEventListeners">numEventListeners</a> : uint<div class="summaryTableDescription">
  123. Indicates the number of total event listerers added to the IClearableEventDispatcher object.</div>
  124. </td><td class="summaryTableOwnerCol"><a href="../../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a></td>
  125. </tr>
  126. <tr class="">
  127. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#priority">priority</a> : uint<div class="summaryTableDescription">
  128. </div>
  129. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  130. </tr>
  131. <tr class="">
  132. <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]
  133. Returns a value between zero and one indicating the current loading progress of the loader.</div>
  134. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  135. </tr>
  136. <tr class="">
  137. <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>
  138. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  139. </tr>
  140. </table>
  141. </div>
  142. <a name="methodSummary"></a>
  143. <div class="summarySection">
  144. <div class="summaryTableTitle">Public Methods</div>
  145. <div class="showHideLinks">
  146. <div class="hideInheritedMethod" id="hideInheritedMethod">
  147. <a onclick="javascript:setInheritedVisible(false,'Method');" href="#methodSummary" class="showHideLink"><img src="../../../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Methods</a>
  148. </div>
  149. <div class="showInheritedMethod" id="showInheritedMethod">
  150. <a onclick="javascript:setInheritedVisible(true,'Method');" href="#methodSummary" class="showHideLink"><img src="../../../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Methods</a>
  151. </div>
  152. </div>
  153. <table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
  154. <tr>
  155. <th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
  156. </tr>
  157. <tr class="">
  158. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  159. <div class="summarySignature">
  160. <a class="signatureLink" href="#LoaderCore()">LoaderCore</a>(url:String = null, loaderName:String = null)</div>
  161. <div class="summaryTableDescription">
  162. Creates a new LoaderCore object.</div>
  163. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  164. </tr>
  165. <tr class="hideInheritedMethod">
  166. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
  167. <div class="summarySignature">
  168. <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>
  169. <div class="summaryTableDescription">
  170. Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.</div>
  171. </td><td class="summaryTableOwnerCol"><a href="../../events/WeakEventDispatcher.html">WeakEventDispatcher</a></td>
  172. </tr>
  173. <tr class="">
  174. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  175. <div class="summarySignature">
  176. <a class="signatureLink" href="#clone()">clone</a>():<a href="../../core/interfaces/ICloneable.html">ICloneable</a>
  177. </div>
  178. <div class="summaryTableDescription">
  179. Creates a duplicate of the instance.</div>
  180. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  181. </tr>
  182. <tr class="">
  183. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  184. <div class="summarySignature">
  185. <a class="signatureLink" href="#destruct()">destruct</a>(deepDestruct:Boolean = false):void</div>
  186. <div class="summaryTableDescription">
  187. Destructs implementing instance of specified properties.</div>
  188. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  189. </tr>
  190. <tr class="hideInheritedMethod">
  191. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
  192. <div class="summarySignature">
  193. <a class="signatureLink" href="../../events/WeakEventDispatcher.html#dispatchEvent()">dispatchEvent</a>(e:Event):Boolean</div>
  194. <div class="summaryTableDescription">
  195. 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>
  196. </td><td class="summaryTableOwnerCol"><a href="../../events/WeakEventDispatcher.html">WeakEventDispatcher</a></td>
  197. </tr>
  198. <tr class="">
  199. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  200. <div class="summarySignature">
  201. <a class="signatureLink" href="#getURLRequest()">getURLRequest</a>():URLRequest</div>
  202. <div class="summaryTableDescription">
  203. Returns the <code>URLRequest</code> of the loader.</div>
  204. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  205. </tr>
  206. <tr class="">
  207. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  208. <div class="summarySignature">
  209. <a class="signatureLink" href="#listDestructableProperties()">listDestructableProperties</a>():Array</div>
  210. <div class="summaryTableDescription">
  211. Specifies an array of strings representing properties that are to be
  212. nullified or reset upon destruction.</div>
  213. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  214. </tr>
  215. <tr class="">
  216. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  217. <div class="summarySignature">
  218. <a class="signatureLink" href="#load()">load</a>(newURL:String = null):void</div>
  219. <div class="summaryTableDescription">
  220. Initiates the loading process of the loader.</div>
  221. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  222. </tr>
  223. <tr class="">
  224. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  225. <div class="summarySignature">
  226. <a class="signatureLink" href="#prefetchBytesTotal()">prefetchBytesTotal</a>():void</div>
  227. <div class="summaryTableDescription">
  228. Instructs the loader to prefech the total file size of target file without having to start the actual loading progress.</div>
  229. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  230. </tr>
  231. <tr class="hideInheritedMethod">
  232. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
  233. <div class="summarySignature">
  234. <a class="signatureLink" href="../../events/ClearableEventDispatcher.html#removeAllEventListeners()">removeAllEventListeners</a>():uint</div>
  235. <div class="summaryTableDescription">
  236. Removes all event listeners from the IClearableEventDispatcher object.</div>
  237. </td><td class="summaryTableOwnerCol"><a href="../../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a></td>
  238. </tr>
  239. <tr class="hideInheritedMethod">
  240. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
  241. <div class="summarySignature">
  242. <a class="signatureLink" href="../../events/ClearableEventDispatcher.html#removeEventListener()">removeEventListener</a>(type:String, listener:Function, useCapture:Boolean = false):void</div>
  243. <div class="summaryTableDescription">
  244. Removes a listener from the EventDispatcher object.</div>
  245. </td><td class="summaryTableOwnerCol"><a href="../../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a></td>
  246. </tr>
  247. <tr class="hideInheritedMethod">
  248. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
  249. <div class="summarySignature">
  250. <a class="signatureLink" href="../../events/ClearableEventDispatcher.html#removeEventListenersOf()">removeEventListenersOf</a>(listener:Function):uint</div>
  251. <div class="summaryTableDescription">
  252. Removes all event listenres from the IClearableEventDispatcher with specified listener.</div>
  253. </td><td class="summaryTableOwnerCol"><a href="../../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a></td>
  254. </tr>
  255. <tr class="hideInheritedMethod">
  256. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol">
  257. <div class="summarySignature">
  258. <a class="signatureLink" href="../../events/ClearableEventDispatcher.html#removeEventListenersWithType()">removeEventListenersWithType</a>(type:String):uint</div>
  259. <div class="summaryTableDescription">
  260. Removes all event listenres from the IClearableEventDispatcher with specified type.</div>
  261. </td><td class="summaryTableOwnerCol"><a href="../../events/ClearableEventDispatcher.html">ClearableEventDispatcher</a></td>
  262. </tr>
  263. <tr class="">
  264. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  265. <div class="summarySignature">
  266. <a class="signatureLink" href="#reset()">reset</a>():void</div>
  267. <div class="summaryTableDescription">
  268. Resets the loader and its properties to what they were upon instantiation.</div>
  269. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  270. </tr>
  271. <tr class="">
  272. <td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
  273. <div class="summarySignature">
  274. <a class="signatureLink" href="#toString()">toString</a>():String</div>
  275. <div class="summaryTableDescription"></div>
  276. </td><td class="summaryTableOwnerCol">LoaderCore</td>
  277. </tr>
  278. </table>
  279. </div>
  280. <script type="text/javascript" language="javascript">
  281. <!--
  282. showHideInherited();
  283. --></script>
  284. <div class="MainContent">
  285. <a name="propertyDetail"></a>
  286. <div class="detailSectionHeader">Property detail</div>
  287. <a name="bytesLoaded"></a>
  288. <table cellspacing="0" cellpadding="0" class="detailHeader">
  289. <tr>
  290. <td class="detailHeaderName">bytesLoaded</td><td class="detailHeaderType">property</td>
  291. </tr>
  292. </table>
  293. <div class="detailBody">
  294. <code>bytesLoaded:uint</code>&nbsp;&nbsp;[read-only]<p>
  295. Indicates the number of loaded bytes from the loaders target file.
  296. </p><span class="label">Implementation</span>
  297. <br>
  298. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get bytesLoaded():uint</code>
  299. <br>
  300. </div>
  301. <a name="bytesTotal"></a>
  302. <table cellspacing="0" cellpadding="0" class="detailHeader">
  303. <tr>
  304. <td class="detailHeaderName">bytesTotal</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  305. </tr>
  306. </table>
  307. <div class="detailBody">
  308. <code>bytesTotal:int</code>&nbsp;&nbsp;[read-only]<p>
  309. Indicates the number of total bytes of the loaders target file.
  310. </p><span class="label">Implementation</span>
  311. <br>
  312. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get bytesTotal():int</code>
  313. <br>
  314. </div>
  315. <a name="bytesTotalPrefetcher"></a>
  316. <table cellspacing="0" cellpadding="0" class="detailHeader">
  317. <tr>
  318. <td class="detailHeaderName">bytesTotalPrefetcher</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  319. </tr>
  320. </table>
  321. <div class="detailBody">
  322. <code>bytesTotalPrefetcher:<a href="../loaders/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a></code>&nbsp;&nbsp;[read-only]<p>
  323. Returns the bytesTotal prefetcher instance.
  324. </p><span class="label">Implementation</span>
  325. <br>
  326. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get bytesTotalPrefetcher():<a href="../loaders/BytesTotalPrefetcher.html">BytesTotalPrefetcher</a></code>
  327. <br>
  328. </div>
  329. <a name="cancelable"></a>
  330. <table cellspacing="0" cellpadding="0" class="detailHeader">
  331. <tr>
  332. <td class="detailHeaderName">cancelable</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  333. </tr>
  334. </table>
  335. <div class="detailBody">
  336. <code>cancelable:Boolean</code>&nbsp;&nbsp;[read-only]<p>
  337. Indicates whether the loader is cancelable. Cancelable loaders may be interrupted while loading.
  338. 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
  339. the <code>load()</code> method again.
  340. </p><span class="label">Implementation</span>
  341. <br>
  342. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get cancelable():Boolean</code>
  343. <br>
  344. </div>
  345. <a name="data"></a>
  346. <table cellspacing="0" cellpadding="0" class="detailHeader">
  347. <tr>
  348. <td class="detailHeaderName">data</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  349. </tr>
  350. </table>
  351. <div class="detailBody">
  352. <code>data:*</code>&nbsp;&nbsp;[read-only]<p>
  353. Returns the loaded data of the LoaderCore.
  354. </p><span class="label">Implementation</span>
  355. <br>
  356. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get data():*</code>
  357. <br>
  358. </div>
  359. <a name="loaded"></a>
  360. <table cellspacing="0" cellpadding="0" class="detailHeader">
  361. <tr>
  362. <td class="detailHeaderName">loaded</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  363. </tr>
  364. </table>
  365. <div class="detailBody">
  366. <code>loaded:Boolean</code>&nbsp;&nbsp;[read-only]<p>
  367. Indicates whether the loading process has finished.
  368. </p><span class="label">Implementation</span>
  369. <br>
  370. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get loaded():Boolean</code>
  371. <br>
  372. </div>
  373. <a name="loading"></a>
  374. <table cellspacing="0" cellpadding="0" class="detailHeader">
  375. <tr>
  376. <td class="detailHeaderName">loading</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  377. </tr>
  378. </table>
  379. <div class="detailBody">
  380. <code>loading:Boolean</code>&nbsp;&nbsp;[read-only]<p>
  381. Indicates whether the loading process is running.
  382. </p><span class="label">Implementation</span>
  383. <br>
  384. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get loading():Boolean</code>
  385. <br>
  386. </div>
  387. <a name="loadTime"></a>
  388. <table cellspacing="0" cellpadding="0" class="detailHeader">
  389. <tr>
  390. <td class="detailHeaderName">loadTime</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  391. </tr>
  392. </table>
  393. <div class="detailBody">
  394. <code>loadTime:uint</code>&nbsp;&nbsp;[read-only]<p>
  395. Indicates, in milliseconds, the time elapsed from loading start to loading completion.
  396. </p><span class="label">Implementation</span>
  397. <br>
  398. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get loadTime():uint</code>
  399. <br>
  400. </div>
  401. <a name="name"></a>
  402. <table cellspacing="0" cellpadding="0" class="detailHeader">
  403. <tr>
  404. <td class="detailHeaderName">name</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  405. </tr>
  406. </table>
  407. <div class="detailBody">
  408. <code>name:String</code>&nbsp;&nbsp;[read-write]<p>
  409. Specifies the name of the loader.
  410. A loader name must be unique.
  411. </p><span class="label">Implementation</span>
  412. <br>
  413. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get name():String</code>
  414. <br>
  415. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function set name(value:String):void</code>
  416. <br>
  417. </div>
  418. <a name="priority"></a>
  419. <table cellspacing="0" cellpadding="0" class="detailHeader">
  420. <tr>
  421. <td class="detailHeaderName">priority</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  422. </tr>
  423. </table>
  424. <div class="detailBody">
  425. <code>priority:uint</code>&nbsp;&nbsp;[read-write]<p>
  426. </p><span class="label">Implementation</span>
  427. <br>
  428. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get priority():uint</code>
  429. <br>
  430. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function set priority(value:uint):void</code>
  431. <br>
  432. </div>
  433. <a name="progress"></a>
  434. <table cellspacing="0" cellpadding="0" class="detailHeader">
  435. <tr>
  436. <td class="detailHeaderName">progress</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  437. </tr>
  438. </table>
  439. <div class="detailBody">
  440. <code>progress:Number</code>&nbsp;&nbsp;[read-only]<p>
  441. Returns a value between zero and one indicating the current loading progress of the loader.
  442. </p><span class="label">Implementation</span>
  443. <br>
  444. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get progress():Number</code>
  445. <br>
  446. </div>
  447. <a name="url"></a>
  448. <table cellspacing="0" cellpadding="0" class="detailHeader">
  449. <tr>
  450. <td class="detailHeaderName">url</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
  451. </tr>
  452. </table>
  453. <div class="detailBody">
  454. <code>url:String</code>&nbsp;&nbsp;[read-write]<span class="label">Implementation</span>
  455. <br>
  456. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function get url():String</code>
  457. <br>
  458. <code>&nbsp;&nbsp;&nbsp;&nbsp;public function set url(value:String):void</code>
  459. <br>
  460. </div>
  461. <a name="constructorDetail"></a>
  462. <div class="detailSectionHeader">Constructor detail</div>
  463. <a name="LoaderCore()"></a>
  464. <table cellspacing="0" cellpadding="0" class="detailHeader">
  465. <tr>
  466. <td class="detailHeaderName">LoaderCore</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
  467. </tr>
  468. </table>
  469. <div class="detailBody">
  470. <code>public function LoaderCore(url:String = null, loaderName:String = null)</code><p>
  471. Creates a new LoaderCore object.
  472. </p><span class="label">Parameters</span>
  473. <table border="0" cellspacing="0" cellpadding="0">
  474. <tr>
  475. <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.
  476. </td>
  477. </tr>
  478. <tr>
  479. <td class="paramSpacer">&nbsp;</td>
  480. </tr>
  481. <tr>
  482. <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.
  483. </td>
  484. </tr>
  485. </table>
  486. </div>
  487. <a name="methodDetail"></a>
  488. <div class="detailSectionHeader">Method detail</div>
  489. <a name="clone()"></a>
  490. <table cellspacing="0" cellpadding="0" class="detailHeader">
  491. <tr>
  492. <td class="detailHeaderName">clone</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
  493. </tr>
  494. </table>
  495. <div class="detailBody">
  496. <code>public function clone():<a href="../../core/interfaces/ICloneable.html">ICloneable</a></code><p>
  497. Creates a duplicate of the instance.
  498. </p><p></p>
  499. <span class="label">Returns</span>
  500. <table border="0" cellspacing="0" cellpadding="0">
  501. <tr>
  502. <td width="20"></td><td><code><a href="../../core/interfaces/ICloneable.html">ICloneable</a></code></td>
  503. </tr>
  504. </table>
  505. </div>
  506. <a name="destruct()"></a>
  507. <table cellspacing="0" cellpadding="0" class="detailHeader">
  508. <tr>
  509. <td class="detailHeaderName">destruct</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  510. </tr>
  511. </table>
  512. <div class="detailBody">
  513. <code>public override function destruct(deepDestruct:Boolean = false):void</code><p>
  514. Destructs implementing instance of specified properties.
  515. <p />
  516. <b>Note:</b> You can override this method to remove unused references in your custom class.
  517. </p><span class="label">Parameters</span>
  518. <table border="0" cellspacing="0" cellpadding="0">
  519. <tr>
  520. <td width="20px"></td><td><code><span class="label">deepDestruct</span>:Boolean</code> (default = <code>false</code>)<code></code></td>
  521. </tr>
  522. </table>
  523. </div>
  524. <a name="getURLRequest()"></a>
  525. <table cellspacing="0" cellpadding="0" class="detailHeader">
  526. <tr>
  527. <td class="detailHeaderName">getURLRequest</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  528. </tr>
  529. </table>
  530. <div class="detailBody">
  531. <code>public final function getURLRequest():URLRequest</code><p>
  532. Returns the <code>URLRequest</code> of the loader. The <code>URLRequest</code> cannot be changed.
  533. </p><p></p>
  534. <span class="label">Returns</span>
  535. <table border="0" cellspacing="0" cellpadding="0">
  536. <tr>
  537. <td width="20"></td><td><code>URLRequest</code></td>
  538. </tr>
  539. </table>
  540. </div>
  541. <a name="listDestructableProperties()"></a>
  542. <table cellspacing="0" cellpadding="0" class="detailHeader">
  543. <tr>
  544. <td class="detailHeaderName">listDestructableProperties</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  545. </tr>
  546. </table>
  547. <div class="detailBody">
  548. <code>public override function listDestructableProperties():Array</code><p>
  549. Specifies an array of strings representing properties that are to be
  550. nullified or reset upon destruction. Applies to public properties <b>only</b>
  551. </p><p></p>
  552. <span class="label">Returns</span>
  553. <table border="0" cellspacing="0" cellpadding="0">
  554. <tr>
  555. <td width="20"></td><td><code>Array</code></td>
  556. </tr>
  557. </table>
  558. </div>
  559. <a name="load()"></a>
  560. <table cellspacing="0" cellpadding="0" class="detailHeader">
  561. <tr>
  562. <td class="detailHeaderName">load</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  563. </tr>
  564. </table>
  565. <div class="detailBody">
  566. <code>public function load(newURL:String = null):void</code><p>
  567. Initiates the loading process of the loader. A new URLRequest cannot be defined through this method.
  568. </p><span class="label">Parameters</span>
  569. <table border="0" cellspacing="0" cellpadding="0">
  570. <tr>
  571. <td width="20px"></td><td><code><span class="label">newURL</span>:String</code> (default = <code>null</code>)<code></code></td>
  572. </tr>
  573. </table>
  574. </div>
  575. <a name="prefetchBytesTotal()"></a>
  576. <table cellspacing="0" cellpadding="0" class="detailHeader">
  577. <tr>
  578. <td class="detailHeaderName">prefetchBytesTotal</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  579. </tr>
  580. </table>
  581. <div class="detailBody">
  582. <code>public final function prefetchBytesTotal():void</code><p>
  583. Instructs the loader to prefech the total file size of target file without having to start the actual loading progress.
  584. </p></div>
  585. <a name="reset()"></a>
  586. <table cellspacing="0" cellpadding="0" class="detailHeader">
  587. <tr>
  588. <td class="detailHeaderName">reset</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  589. </tr>
  590. </table>
  591. <div class="detailBody">
  592. <code>public function reset():void</code><p>
  593. Resets the loader and its properties to what they were upon instantiation.
  594. </p></div>
  595. <a name="toString()"></a>
  596. <table cellspacing="0" cellpadding="0" class="detailHeader">
  597. <tr>
  598. <td class="detailHeaderName">toString</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
  599. </tr>
  600. </table>
  601. <div class="detailBody">
  602. <code>public override function toString():String</code>
  603. <p></p>
  604. <span class="label">Returns</span>
  605. <table border="0" cellspacing="0" cellpadding="0">
  606. <tr>
  607. <td width="20"></td><td><code>String</code></td>
  608. </tr>
  609. </table>
  610. </div>
  611. <br>
  612. <br>
  613. <hr>
  614. <br>
  615. <p></p>
  616. <center class="copyright">
  617. </center>
  618. </div>
  619. </body>
  620. </html>
  621. <!-- -->