The system. disposexml () method is added for Flash Player 10.1 and air 1.5.2.

Source: Internet
Author: User

Garbage collection is a noteworthy sensitive topic for developers. The garbage collection behavior of Flash Player is uncontrollable. Recently, I found that Flash Player
The system. disposexml () method is added in 10.1 and air 1.5.2. This is another method that allows developers to manually release memory (although only for XML
Object ). Currently, what I know is that APIs that can release memory are ):

  • System. disposexml ()
  • Bitmapdata. Dispose ()
  • Loader. unloadandstop ()
  • System. GC ()-this is the most powerful API, but it is only applicable to the debugging version. System. GC () is only for developers. system. GC () is limited to Flash Player debugging and AIR applications. In the air application, the system. GC () method is only enabled in the content running in the air debug launcher (ADL) or in the Application Security Sandbox of the installed application.

Disposexml () method

Public static function disposexml (node: XML): void
Language Version
: ActionScript 3.0
Runtime version
: Flash Player 10.1, air 1.5.2
Description
: Make the specified XML object available for garbage collection immediately. This method deletes the parent-level and child-level connections between all nodes of the specified XML node.
Parameters
:Node
: XML-XML reference for garbage collection.

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.