??xml version="1.0" encoding="utf-8" standalone="yes"?>
http://www.insideria.com/2009/10/easy-flex-skinning-with-firewo.html
http://onflex.org/learn/fx4/index.php?page=States
看完q篇文章后,惛_一个问题,如何用编E的方式实现切换呢,找了参考资料,实现了一个例子,代码如下Q?/p>
开发环境:Flash Builder 4 Beta2
暂时用不到这个工P记录留待备查?/p>
原文如下Q?/font>
Events are an important way for objects to communicate. They are essential for creating flexible systems. Flash Player 9, for example, has a built-in event dispatching mechanism in the flash.events.EventDispatcher class. All classes that dispatch events inherit from EventDispatcher (e.g., NetStream and Sprite). If you want to define a class that dispatches events, you can extend EventDispatcher, as follows:
package {
import flash.events.EventDispatcher;
public class Example extends EventDispatcher {
}
}
The EventDispatcher class has public methods called addEventListener( ) and removeEventListener( ) that you can call from any instance of an EventDispatcher subclass to register event listeners. EventDispatcher also defines a protected method called dispatchEvent( ), which you can call from within a subclass to dispatch an event. The dispatchEvent( ) method requires at least one parameter as a flash.events.Event object or a subclass of Event.