Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Flex Effect in flex

Have Programming Question? Ask it here!
 
 
 


bikrantsingh
Effect in flex
1 Answer(s)      3 years and 10 months ago
Posted in : Flex


Hi.........

Explain the difference between creating an effect and setting the target as opposed to adding an effectListener?

Please give an appropriate example for that

Thanks

Advertisement
View Answers

October 15, 2010 at 7:06 PM


<p>Ans:<br>
To create a behavior, you define a specific effect with a unique ID and bind it
to the trigger.<br>
For Example:<br>
<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot; <br>
xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot; <br>
xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot; <br>
minWidth=&quot;955&quot; minHeight=&quot;600&quot;&gt;<br>
&lt;fx:Declarations&gt;<br>
&lt;!-- Sequence Effect --&gt;<br>
&lt;mx:Sequence id=&quot;sequenceEffect&quot;&gt;<br>
&lt;mx:Zoom id=&quot;zoomIn&quot; <br>
originX=&quot;175&quot;<br>
originY=&quot;50&quot;<br>
zoomHeightTo=&quot;1.5&quot; <br>
zoomWidthTo=&quot;1.5&quot; <br>
duration=&quot;1500&quot;/&gt;<br>
&lt;mx:Rotate id=&quot;imageRotate&quot;<br>
originX=&quot;175&quot; <br>
originY=&quot;50&quot;<br>
angleFrom=&quot;0&quot; <br>
angleTo=&quot;360&quot; <br>
duration=&quot;500&quot; <br>
repeatCount=&quot;1&quot;/&gt;<br>
&lt;mx:Pause/&gt;<br>
&lt;mx:Rotate id=&quot;imageRotate1&quot;<br>
originX=&quot;175&quot; <br>
originY=&quot;50&quot;<br>
angleFrom=&quot;360&quot; <br>
angleTo=&quot;0&quot; <br>
duration=&quot;500&quot; <br>
repeatCount=&quot;1&quot;/&gt;<br>
&lt;mx:Zoom id=&quot;zoomOUT&quot; <br>
originX=&quot;175&quot;<br>
originY=&quot;50&quot;<br>
zoomHeightTo=&quot;1.0&quot; <br>
zoomWidthTo=&quot;1.0&quot; <br>
duration=&quot;1500&quot;/&gt;<br>
&lt;/mx:Sequence&gt;<br>
&lt;/fx:Declarations&gt;<br>
&lt;s:Panel title=&quot;MX Sequence Effect Example&quot; <br>
width=&quot;497&quot; height=&quot;458&quot; <br>
chromeColor=&quot;#000000&quot; color=&quot;#CCCCCC&quot;&gt;<br>
&lt;mx:ApplicationControlBar width=&quot;496&quot; horizontalAlign=&quot;center&quot;&gt;<br>
&lt;s:Label text=&quot;Click on image and show the effect.&quot;<br>
fontFamily=&quot;verdana&quot; color=&quot;#000000&quot;/&gt;<br>
&lt;/mx:ApplicationControlBar&gt;<br>
&lt;mx:Image id=&quot;roseindia&quot; <br>
source=&quot;@Embed(source=&#39;file:/C:/work/bikrant/image/roseindia.gif&#39;)&quot; <br>
x=&quot;125&quot; y=&quot;191&quot; <br>
mouseDownEffect=&quot;{sequenceEffect}&quot; <br>
width=&quot;245&quot; height=&quot;81&quot;/&gt;<br>
&lt;/s:Panel&gt; <br>
&lt;/s:Application&gt;<br>
</p>


Related Tutorials/Questions & Answers:
Effect in flex
Effect in flex  Hi......... Explain the difference between creating an effect and setting the target as opposed to adding an effectListener... a behavior, you define a specific effect with a unique ID and bind
Chart Effect in Flex4
Chart Effect in Flex4: Chart uses the standard Flex effect like Zoom and Fade. There are some standard effect for chart series which is: SeriesInterpolate... package. The base class for chart effect is SeriesEffect. You can triggered
Advertisements
Effect duration
Effect duration  Hi..... Can I set an effect?s duration as a percentage of its parent?s? give an example. Thanks   Ans: <s:Sequence...; You can see the duration property of effect it is showing the value
MX Fade Effect in Flex4
MX Fade Effect in Flex4: The Fade effect uses the alpha property for effect. The changes of effect from transparent to opaque, or from opaque to transparent. You can specify the effect using rollOverEffect and rollOutEffect. The Tag
Flex Tab Navigator example
Flex Tab Navigator example   .... Tab Navigators are Navigator containers of flex. In the following code, three tabs have been created using flex Layout container VBox
MX Mask Effect in Flex4
MX Mask Effect in Flex4: A mask effect is a subclass of the MaskEffect class. The Mask Effect class include the wipe and Iris effect. It is a overlay effect.... In this example we use a canvas as a mask which is provide the mask effect
Spark Fade effect in Flex4
Spark Fade effect in Flex4: The Fade effect uses the alpha property for effect. The changes of effect from transparent to opaque, or from opaque to transparent. You can specify the effect using rollOverEffect and rollOutEffect
MX Glow Effect in Flex4
MX Glow Effect in Flex4: The Glow effect applies a visual glow effect to a component. The tag of Glow effect is <mx:Glow>. The Glow effect uses... a Glow effect With components. Example: <?xml version="1.0
MX Blur Effect in Flex4
MX Blur Effect in Flex4: The Blur effect uses for a blur visual effect to a component. The component will shaded by using this effect. You will set the blur... 4. blurYTo The tag of Blur effect is <mx:Blur>. In this example you
Flex Looping
Flex Looping  I need example for flex looping mechanisam example
Flex - Framework
Flex  database conectivity in flex
Flex Combobox
Flex Combobox  flex combobox with database as dataprovider   You can visit the following link for detailed tutorial on the topic. May this will be helpful to you. http://www.roseindia.net/flex/flex-combo-box.shtml
Flex event
Flex event  Hi.... Please tell me about How to create your own event in flex? Thanks
Flex and Java
Flex and Java  hi..... Please give similiarities between Java and Flex. Thanks
Flex basic
Flex basic  Hi...... please just tell me about Can we run Flex applications in MAC? Thanks
Spark Resize effect in Flex4
Spark Resize effect in Flex4: The Resize effect changes the height, width... and shrink the size of component using Resize effect.  The tag of Resize effect is <s:Resize>. In this example you can see how we can use a Resize
MX Iris Effect in Flex4
MX Iris Effect in Flex4: The Iris effect provides the effect to the target... of Iris effect is <mx:Iris>. <mx:Iris id="irisOn"... you can see how we can use a Iris effect With components. Example
MX Resize Effect in Flex4
MX Resize Effect in Flex4: The Resize effect changes the height, width or both... the size of component using Resize effect. The tag of Resize effect is <mx:Resize>. In this example you can see how we can use a Resize effect
How to remove fade effect, remove fade effect, fade effect
How to remove fade effect       Remove fade effect by using this example, we are going to remove fade effect from the old car picture. Let's try Open a picture: Capture any fade
Flex and Java
Flex and Java  Hi...... Give the name of Collection which can be mapped to java and Flex and vice-versa. please give the name of all collections which is used in flex and java.. Thanks
Flex and Java
Flex and Java  Hi.... What are the config files that are used to connect Java and Flex applications? Please provide the solution of this prob so i connect java and flex.... Thanks
Flex basic
Flex basic  Hi.... Can flex application communicate with each other on the client? please give me the answer ASAP..... Thanks   Ans: See the LocalConnection API In the flex documentation. Thanks
MX Pause Effect in Flex4
MX Pause Effect in Flex4: The Pause effect is useful in sequencing effects. You create a pause between two effects by using Pause effect. The tag of Pause effect is <mx:Pause>. The syntax is following: <mx:Pause id="
Flex Updates
Flex Updates  Sir, first Thanks For Good Resource for Every One! i am New to Flex... but,in Current Updates Tell Us Flex Becomes To down!(Sorry To say).. May I know Future groom & Advantage of Flex Over Other Web
Flex as a Service
Flex as a Service  Hi....... just tell me about How do I run Flex as a service? please give me an example if possible Thanks  Ans: Flex is not a server. It is the pert of your web application. you can use
Flex basic
Flex basic  Hi.... I want to know Do we need any plugins to run Flex applications? please give the ans ASAP....... Thanks
Flex basic
Flex basic  Hi.... can you tell me about Is Flex OS specific or operating system independent? please give the description about it....... Thanks
Flex application
Flex application  Hi..... What kind of applications you can create from flex? please give the name of these applications....... Thanks
Flex basic
Flex basic  Hi.......... I want to know about What is localToGlobal and globalToLocal in flex? please give me ans ASAP..... Thanks
Flex difference
Flex difference  Hi.... please tell me about What is the difference between Flex 2.0 and Flex 3.0? Thanks  Ans: There are some advantages of Flex3.0 over Flex 2.0 they are following: 1. Faster compilation time
Touch screen effect
Touch screen effect  Hello everyone, I would like to create a desktop application using java, is it possible to have touch screen effect for the desktop application? Exp: when user click next button, whole screen will move
Flex with JSP
Flex with JSP  i want to draw chart in jsp page using flex. how can i do that? any solution??   Flex charts You can visit the following links: http://www.roseindia.net/tutorial/flex/flex4/components/charteffect.html
Spark Scale Effect in Flex4
Spark Scale Effect in Flex4: The Scale effect is used for change the size.... The tag of Scale effect is <s:Scale>. The syntax of Scale effect...; In this example you can see how we can use a Scale effect With components
Flex basic
Flex basic  Hi...... Please tell me about What are non-visual components in flex? What class do they extend? please give the name of these components....... Thanks
Spark Move3D Effect in Flex4
Spark Move3D Effect in Flex4: The Move3D effect is used for moving... direction the effect will look like a Zoom effect. The tag of Move3D effect is <s:Move3D>. The syntax of Move3D effect is following: <s:Move3D id
Adding a flex table in another flex table column
Adding a flex table in another flex table column  how to add a flex table in another flex table column
Adobe flex
Adobe flex  Hi... please give me the description about What is Adobe Flex? Thanks
Flex event
Flex event  hi...... How to capture and event if the component is disabled? please give an example..... Thanks in advance
Mask in Flex
Mask in Flex  Hi...... Is it possible to create 'gradient mask' in flex? please give me the ans ASAP..... Thanks in advance
XML in flex
XML in flex  Hi... just tell me about What is e4X and XML in flex? Thanks
Metadata in flex
Metadata in flex  Hi......... please tell me about the meta data in flex. Thanks
Image in Flex
Image in Flex  Hi..... Can you manipulate images using Flex programs? please give me the example....... Thanks
Flex Managers
Flex Managers  Hi... Please tell me about How to override Managers? give me an example for that.... Thanks
Advantage of Flex
are the Advantages and Disadvantages of flex? Thanks   Advantages: Flex IDE is very capable. Flex output is a movie and images is the major part of this movie. you can not directly download the flex running file. When we right click
MX Move Effect in Flex4
MX Move Effect in Flex4: The component move from one point to another point by using Move effect. You will set the xFrom, yFrom, xTo, yTo, xBy and yBy property for moving a component. The tag of Move effect is <mx:Move>
Page curl effect iPhone SDK
Page curl effect iPhone SDK  How to get the page curl effect in my iPhone application? Please suggest or give an example to get the page curl effect in iPhone SDK application. Thanks.   In objective c there is a method
ToolTip Effect in Flex4
ToolTip Effect in Flex4: In this example you can see how we can use the effect with tooltip. You can provide the effect to the tooltip by using...:s="library://ns.adobe.com/flex/spark" xmlns:mx="library
Flex event
Flex event  Hi.... please tell me about How does Flex event...: In the capturing phase, Flex examines an event target?s ancestors in the display list to see...: In the targeting phase, Flex invokes the event dispatcher?s listeners. No other nodes
Create MX Effect using Actionscript in Flex4
Create MX Effect using Actionscript in Flex4: In this example we create a MX effect using Actionscript. The package of MX effect is mx.effects.*. Inthis example we create a WipeDown effect using Actionscript. Example
MX Zoom Effect in Flex4
MX Zoom Effect in Flex4: The component will zoom in or out on a center point using Zoom effect. The tag of Zoom effect is <mx:Zoom>. The syntax...; In this example you can see how we can use a Zoom effect in your application
 

 

 

DMCA.com