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



Home Answers Viewqa Flex Effect duration
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


BikrantSingh
Effect duration
1 Answer(s)      4 years and 2 months ago
Posted in : Flex


Hi.....

Can I set an effect?s duration as a percentage of its parent?s?

give an example.

Thanks


Advertisement
View Answers

October 29, 2010 at 3:22 PM


Ans:

<s:Sequence id="sequenceEffect" duration="1000">
<s:Fade alphaFrom="0" alphaTo="1"  duration="{sequenceEffect.duration * .1}"/>
<s:Scale scaleXTo="1.5" scaleYTo="1.3" duration="{sequenceEffect.duration * .9}"/>
<s:Fade alphaFrom="1" alphaTo="0"  duration="{sequenceEffect.duration * .1}"/>
</s:Sequence>

You can see the duration property of effect it is showing the value in percentage.

Thanks



Related Tutorials/Questions & Answers:
Effect duration
Effect duration  Hi..... Can I set an effect?s duration...; You can see the duration property of effect it is showing the value... id="sequenceEffect" duration="1000"> <s:Fade alphaFrom="0" alphaTo="1
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
Advertisements
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
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
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 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="
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" duration="500" showTarget="true" /> In this 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
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...;" scaleYFrom="" scaleYTo="" duration="" />
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
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 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
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
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>
Spark Animate effect in Flex4
Spark Animate Effect in Flex4: Spark Animate effect animates any property... of the SimpleMotionPath class for each property to animate. The tag of Animate effect is <s:Animate>. The syntax of Animate effect is following: <s:Animate id
Spark AnimateColor effect in Flex4
Spark AnimateColor effect in Flex4: Spark AnimateColor effect changes the color property of the component or target. The tag of AnimateColor effect is <s:AnimateColor>. The syntax of AnimateColor effect is following: <s
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
MX Sequence Effect in Flex4
MX Sequence Effect in Flex4: The Sequence effect is used to play multiple effects one after the other according they are added. The tag of Sequence Effect... Effect in application. Example: <?xml version="1.0"
Spark CrossFade Effect in Flex4
Spark CrossFade Effect in Flex4: The Spark CrossFade Effect is used for change... that another component will be shown. The tag of CrossFade Effect is <s...; repeatCount="" repeatBehavior="" duration="" />
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
Spark Move Effect in Flex4
Spark 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 <s:Move>
Create MX Effect using Actionscript in Flex4
(); // Set the duration of the effect myEffect.duration=1000...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
Spark Rotate Effect in Flex4
="" duration="" /> The tag of Rotate effect is <s...Spark Rotate Effect in Flex4: The Rotate effect rotates a component. You can set the starting and ending angle of rotation. The syntax of Rotate effect
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
Spark Rotate3D Effect in Flex4
Spark Rotate3D Effect in Flex4: The Rotate3D effect rotates a component in x... angle of rotation. The syntax of Rotate3D effect is following: <s:Rotate3D id="" angleFrom="" angleTo="" duration
MX Parallel Effect in Flex4
MX Parallel Effect in Flex4: The parallel Effect plays multiple child effects at the same time. The tag of parallel Effect is <mx:Parallel>. In this example you can see how we can use parallel Effect in application. Example
MX Dissolve Effect in Flex4
MX Dissolve Effect in Flex4: When the Dissolve effect played the component... the alpha property. The tag of Dissolve effect is <mx:Dissolve>. There are the following attribute of Dissolve effect. <mx:Dissolve id="
MX Wipe Effect in Flex4
MX Wipe Effect in Flex4: The Wipe class defines a bar wipe effect. The before and after state of the component must be visible. This effect inherits the MaskEffect. There are four types of Wipe Effect: WipeLeft, WipeRight, WipeUp
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...;fx:Declarations> <mx:Sequence duration="500" id
 

 

 

DMCA.com