Adobe Flash Player 10 beta 2 出了
其中有一个很重要的新功能 Loader.unloadAndStop(gc:Boolean = true):void
调用之后可以立即移除 SWF 内所有的音乐、Event Listeners、Timers、....
文档上的说明:
public function unloadAndStop(gc:Boolean = true):void
Attempts to unload child SWF file contents and stops the execution of commands from loaded SWF files. This method attempts to unload SWF files
that were loaded using Loader.load() or Loader.loadBytes() by removing references to EventDispatcher, NetConnection, Timer, Sound, or Video objects of the child SWF file. As a result, the following occurs for the child SWF file and the child SWF file's display list:
- Sounds are stopped.
- Stage event listeners are removed.
- Event listeners for
enterFrame,frameConstructed,exitFrame,activateanddeactivateare removed. - Timers are stopped.
- Camera and Microphone instances are detached
- Movie clips are stopped.
发现一点很奇妙的事情,beta 2 的版本号码居然比 beta 1 还少
Release Note 上写得很清楚:(我有把 Release Note 都存下来)
Updated: May 15, 2008
These release notes document known issues related to the beta versions of Adobe® Flash® Player 10, code named
“Astro”. The current beta build 10.0.1.218.
Updated: July 2, 2008 These release notes document known issues related to the beta versions of Adobe® Flash® Player 10, code named "Astro". The current beta build 10.0.0.525.
难道 Flash Player 原始码也被回溯了吗? :P
Read more...



