Archives

Posts Tagged ‘Event’

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 .

Nov 30th, 2010 | Filed under Cookie, Event, Flex3, Flex4, NavigatorContent, SharedObject, ViewStack

Following  example  show simple State change Button width

ButtonWithState.mxml

Nov 30th, 2010 | Filed under Button, Event, Flex4, State

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.

Nov 30th, 2010 | Filed under Event, Flex Event, Flex4

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.

Nov 30th, 2010 | Filed under Event, Flex Event, Flex3, Flex4, Panel

Following  example use PopUpManager to PopUp a TitleWindow with Image and Label.Depend on wich image dispatch MouseMove event.

Nov 30th, 2010 | Filed under Event, Flex3, Flex4, Image, PopUpManager, RollOut, RollOver, TitleWindow

Following example show how use DataGroup itemRenderer create a clickable menu and disable effect when another click event dispatch.

Nov 30th, 2010 | Filed under ArrayCollection, Event, Flex4

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.

Nov 30th, 2010 | Filed under Event, Flex Event, Flex4

Fllowing example show how use event bubbing to change parent backgroundColor

Nov 30th, 2010 | Filed under Event, Flex Event, Flex4

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.

Nov 30th, 2010 | Filed under Event, Flex4, Rotate, Rotate3D, State

By using the Spark container’s addElement() or addElementAt()

methods,so that it becomes part of the visual hierarchy of an application.

Nov 30th, 2010 | Filed under Event, Flex Event, Flex4