Archives
The SharedObject class is used to read and store limited amounts of data on a user’s computer or on a server. Shared objects offer real-time data sharing between multiple client SWF files and objects that are persistent on the local computer or remote server. Local shared objects are similar to browser cookies and remote shared objects are similar to real-time data transfer devices. To use remote shared objects, you need a server, such as Adobe Flex or Adobe’s Macromedia Flash Media Server .
Following example show simple State change Button width
ButtonWithState.mxml
This is equivalent to the addEventListener() method in the previous code example. However, it is best practice to use the addEventListener() method. This method gives you greater control over the event by letting you configure the priority and capturing settings, and use event constants. In addition, if you use addEventListener() to add an event handler, you can use removeEventListener() to remove the handler when you no longer need it. If you add an event handler inline, you cannot call removeEventListener() on that handler.
In follwing example we have use an event object property target and currentTarget to drag the panel,These properties enables the programmer to track the event of which the object is made, during the event’s propagating process. Properties target and currentTarget differ in their targeting jobs. target property may dispatch the event to a component or component’s sub component, whereas currentTarget will target the event to a particular node in which the event listener .The currentTarget property is the IEventListener you registered the event handler for. The target is the one that dispatched the event that you are currently handling.
Following example use PopUpManager to PopUp a TitleWindow with Image and Label.Depend on wich image dispatch MouseMove event.
Following example show how use DataGroup itemRenderer create a clickable menu and disable effect when another click event dispatch.
You want all of the functionality of the Event class, but you need the ability to store custom data in the event object. In this example,you will create a new ActionScript class that extends the Event class with additional class properties. By extending the Event class,you maintain access to all of its functionality and can add your own properties to store the data.
Fllowing example show how use event bubbing to change parent backgroundColor
The Rotate3D class rotate a target object in three dimensions around the x, y, or z axes. The rotation occurs around the transform center of the target.
By using the Spark container’s addElement() or addElementAt()
methods,so that it becomes part of the visual hierarchy of an application.


