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



Home Answers Viewqa Flex Effect in flex
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


bikrantsingh
Effect in flex
1 Answer(s)      4 years 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 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
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
Flex Looping
Flex Looping  I need example for flex looping mechanisam example
Flex - Framework
Flex  database conectivity in flex
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
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
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 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
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="
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 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 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 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
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
 

 

 

DMCA.com