
Hi.....
Can I set an effect?s duration as a percentage of its parent?s?
give an example.
Thanks

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
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.