byexample/flash/flash9/loaderinfo

Differences between version #9313 and #9315

61,63c61,62
< [[http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/LoaderInfo.html#event:init | The explanation below doesn't show the correct way to wait for loaderInfo ]].
< 
< 
---
> [[http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/LoaderInfo.html#event:init | The explanation below doesn't show the correct way to wait for loaderInfo ]]. Rather than polling for ready state on timer, listen for Event.ADDED_TO_STAGE on Lib.current, then listen to Event.INIT on Lib.current.stage.loaderinfo. However, these events may not be called if they already occurred, so don't listen to either event if Lib.current != null and Std.is( root.stage.stageWidth , Int ). Below follows the timer polling method, which may be more well tested.
> .

	
Ver Date Lg User Action

Previous | Next