About loaderinfo In Flex

Source: Internet
Author: User

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 objectcontentLoaderInfoProperty --contentLoaderInfoAttribute 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 accesscontentLoaderInfoWhen multiple attributes of an attribute are specified, an error is returned.
  • Display objectloaderInfoAttribute.

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.