Version#1.0#(May#14,#2009)#
!
Figure'10')'The'Windowed'Application'H ierarchy'
When!a!DisplayObject!is!added!to!the!stage!(or!children!of!the!root!DisplayObject)!
the!stage!property!is!defined!as!a!reference!to!the!windowed!application’s!stage.!!
Only!the!root!DisplayObject!has!the!stage!property!set!at!construction,!otherwise!
the!stage!property!is!set!when!the!object!is!added!to!the!display!stack!(addChild(),!
Loader,!etc).!!So!when!the!SystemManager,!which!extends!MovieClip!‐>!
DisplayObject,!is!constructed!it!checks!to!see!if!the!stage!property!is!defined,!and!if!
so!it!knows!that!it!must!be!the!root!SystemManager!because!the!stage!was!defined!at!
construction.!
Once!the!SystemManager!determines!it’s!the!root,!it!then!has!the!ability!to!access!its!
own!loaderInfo!property.!!The!loaderInfo!property!contains!an!instance!of!the!
LoaderInfo!Class!which!allows!access!to!information!such!as!the!source!SWF!url,!
parameters!that!have!been!passed!to!the!SWF,!domain!information,!content,!bytes!
loaded,!total!bytes,!etc.!
In!typical!Flash/Flex!development!we!usually!access!the!loaderInfo!details!of!a!
SWFLoader!or!other!Loader!based!Class!when!we!are!explicitly!loading!content!
within!our!application.!!We!use!the!loadInfo!object!as!a!way!to!get!progress!
Commenti su questo manuale