<< Chapter < Page Chapter >> Page >

Supplemental material

I recommend that you also study the other lessons in my extensive collection of online programming tutorials. You will find a consolidated index at www.DickBaldwin.com .

General background information

According to Using Behaviors ,

"Behaviors let you add animation and motion to your application in response to user or programmatic action. For example, you can use behaviorsto cause a dialog box to bounce slightly when it receives focus, or to slowly fade in when it becomes visible."

You program behaviors into your applications using MXML, ActionScript, triggers, and effects.

According to About behaviors ,

"A behavior is a combination of a trigger paired with an effect. A trigger is an action, such as a mouse click on a component, a componentgetting focus, or a component becoming visible. An effect is a visible or audible change to the target component that occurs over a period of time,measured in milliseconds. Examples of effects are fading, resizing, or moving a component."

Triggers are not events

Triggers are caused by events, but triggers are different from events. For example, the trigger named mouseDownEffect results from the occurrence of a mouseDown event.

If an Effect object, such as a Glow effect has been associated with a mouseDownEffect trigger for a given target component, the Glow effect will be played when the user presses the mouse button while the mouse pointer is over the target component.This will be true regardless of whether or not a mouseDown event listener is registered on the component.

Thirteen standard triggers in Flex Builder 3

The UIComponent class lists thirteen triggers :

  • addedEffect - Triggering Event:added. Played when the component is added as a child to a Container.
  • creationCompleteEffect - Triggering Event:creationComplete Played when the component is created.
  • focusInEffect - Triggering Event:focusIn Played when the component gains keyboard focus.
  • focusOutEffect - Triggering Event:focusOut Played when the component loses keyboard focus.
  • hideEffect - Triggering Event:hide Played when the component becomes invisible.
  • mouseDownEffect - Triggering Event:mouseDown Played when the user presses the mouse button while over the component.
  • mouseUpEffect - Triggering Event:mouseUp Played when the user releases the mouse button while over the component.
  • moveEffect - Triggering Event:move Played when the component is moved.
  • removedEffect - Triggering Event:removed Played when the component is removed from a Container.
  • resizeEffect - Triggering Event:resize Played when the component is resized.
  • rollOutEffect - Triggering Event:rollOut Played when the user rolls the mouse so it is no longer over the component.
  • rollOverEffect - Triggering Event:rollOver Played when the user rolls the mouse over the component.
  • showEffect - Triggering Event:show Played when the component becomes visible.

Effects are subclasses of the Effect class

Effects are subclasses of the Effect class a couple of levels down the inheritance hierarchy. Flex Builder 3provides a number of built-in effects including the following:

Questions & Answers

what is biology
Hajah Reply
the study of living organisms and their interactions with one another and their environments
AI-Robot
what is biology
Victoria Reply
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
lack electricity and its more savely than electronic microscope because its naturally by using of light
Abdullahi Reply
advantage of electronic microscope is easily and clearly while disadvantage is dangerous because its electronic. advantage of light microscope is savely and naturally by sun while disadvantage is not easily,means its not sharp and not clear
Abdullahi
cell theory state that every organisms composed of one or more cell,cell is the basic unit of life
Abdullahi
is like gone fail us
DENG
cells is the basic structure and functions of all living things
Ramadan
What is classification
ISCONT Reply
is organisms that are similar into groups called tara
Yamosa
in what situation (s) would be the use of a scanning electron microscope be ideal and why?
Kenna Reply
A scanning electron microscope (SEM) is ideal for situations requiring high-resolution imaging of surfaces. It is commonly used in materials science, biology, and geology to examine the topography and composition of samples at a nanoscale level. SEM is particularly useful for studying fine details,
Hilary
cell is the building block of life.
Condoleezza Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Object-oriented programming (oop) with actionscript. OpenStax CNX. Jun 04, 2010 Download for free at http://cnx.org/content/col11202/1.19
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Object-oriented programming (oop) with actionscript' conversation and receive update notifications?

Ask