Wednesday, May 27, 2009

Implementation of view states

In a Flex application it is very easy to implement various view without much overhead.
we can override default view-states one or more times and can have various view states as per our requirement.

so, let us see some of the ways:

Defining view state overrides

When we define a view state, we specify the changes, or overrides, from the base state to the new view state, or from any other view state to the new view state. As part of the view state, we can define the following overrides:

  • Set the value of object properties
  • Set the value of component styles
  • Add or remove components
  • Change the event handler assigned to an event
We'll see shortly implementations of all these......

Regards,
Ashok

Monday, May 25, 2009

View-States in Flex 3.0

View states let you vary the content and appearance of a component or application, typically in response to a user action.
For example, the base, or default, view state of the application could be the home page and include a logo, a sidebar, and some welcome content. When the user clicks a button in the sidebar, the application dynamically changes its appearance, meaning its view state, by replacing the main content area with a purchase order form but leaving the logo and sidebar in place.

Transitions define how a change of view state looks as it occurs on the screen. For information on transitions, see Using Transitions.

About view states

In many rich Internet applications, the interface changes based on the task the user is performing. A simple example is an image that changes when the user rolls the mouse over it. More complex examples include user interfaces whose contents change depending on the user’s progress through a task, such as changing from a browse view to a detail view.
View states let you easily implement such applications.
At its simplest, a view state defines a particular view of a component. For example, a product thumbnail could have two view states; a default view state with minimal information, and a “rich” state with links for more information.

To create a view state, you define a default view state, and then define a set of changes, or overrides, that modify the default view state to define the new view state. Each additional view state can modify the default view state by adding or removing child components, by setting style and property values, or by defining state-specific event handlers.



Regards,
Ashok

Tuesday, April 7, 2009

Flex Development

Flex, its an IDE provided by Adobe to develop future web applications, rather rich internet applications. so far Flex 1.0, 2.0 and 3.o are already released. Next version the Flex 4 is in development stage. The main feature of flex is that its open source, rich look and feel and quick response. The development work is made easier by providing a large set of freely available custom components. A nice presentation about Flex 4 can be viewed here :

Flex 4 SDK next plan by Matt Chotin
Flex 4 SDK presentation in PDF