The loaderinfo class provides information about loaded SWF files or image files (JPEG, GIF, or PNG. The loaderinfo object can be used for any Display object. The information provided includes the loading progress, loading program URL and loading content, the total number of media bytes, and the height and width of the media logo.
You can access the loaderinfo object using either of the following methods:
- Flash. display. loader object
contentLoaderInfo
Property --contentLoaderInfo
Attribute can always be used for any loader object. For uncalledload()
OrloadBytes()
Method, or the loader object that has not been fully loaded, in the attempt to accesscontentLoaderInfo
When multiple attributes of an attribute are specified, an error is returned.
- Display object
loaderInfo
Attribute.
Refer:
Http://livedocs.adobe.com/flex/3_cn/langref/flash/display/LoaderInfo.html
You can use loaderinfo to obtain the parameters passed when accessing SWF.
Flash_url: "$ {base}/flash/tsoctopo.swf" + "? Skin = "+ encodeuri (" $ {base}/flashskin/getskin? APP = Topo ")
VaR paramobj: Object = loaderinfo (loaderinfo). parameters; you can obtain the parameter list.
Paramobj ["skin"] is the passed skin parameter.