<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal" width="100%" height="100%"
horizontalAlign="center" verticalAlign="middle">
<mx:Script>
<![CDATA[
private function mouseOverHandler(event:Event):void {
hover.stop();
hover.play();
}
private function mouseOutHandler(event:Event):void {
out.stop();
out.play();
}
]]>
</mx:Script>
<mx:Parallel id="hover">
<mx:Zoom id="zoomOut" zoomWidthFrom="1.0" zoomWidthTo="1.5"
zoomHeightFrom="1.0" zoomHeightTo="1.5"
target="{botton1}"/>
<mx:Fade id="fadeOut" alphaFrom="1.0" alphaTo="0.0"
target="{botton2}"/>
</mx:Parallel>
<mx:Parallel id="out">
<mx:Zoom id="zoomIn" zoomWidthFrom="1.5" zoomWidthTo="1.0"
zoomHeightFrom="1.5" zoomHeightTo="1.0"
target="{botton1}"/>
<mx:Fade id="fadeIn" alphaFrom="0.0" alphaTo="1.0"
target="{botton2}"/>
</mx:Parallel>
<mx:HBox width="25%" minHeight="100">
<!--FYI : Text will not dissolve in flex.-->
<mx:Button label="Button1" id="botton1"
rollOver="mouseOverHandler(event)"
rollOut="mouseOutHandler(event)"/>
<mx:Button label="Button2" id="botton2"/>
</mx:HBox>
</mx:Application>
On Tue, Aug 10, 2010 at 18:06, NavaneethaNagapoori <[email protected]>wrote:
> i have tried using <mx:parallel> tag,its not working.
> i is give parallel effects to single button but i want individual effect to
> each button simultaneously.
> for eg:
> there are two buttons: b1 and b2
> b1 should zoom on roll over and b2 has to fade/dissolve at the same time.
>
> Please help me.
>
>
> On Tue, Aug 10, 2010 at 5:45 PM, Edwin.vgwhiz <[email protected]>wrote:
>
>> I'd like to see this when you are done.
>>
>>
>>
>> On Tue, Aug 10, 2010 at 6:46 AM, NavaneethaNagapoori <[email protected]
>> > wrote:
>>
>>> thanks
>>> let me try with this.
>>> But effects are on different components
>>>
>>> On Tue, Aug 10, 2010 at 4:13 PM, GAGAN anand <[email protected]>wrote:
>>>
>>>> Hi Navaneetha,
>>>>
>>>> For the effects run simultaneously, u need to make use of
>>>> <mx:Parallel></mx:Parallel> tag and inside in this tag you can write the
>>>> effects. This will run as many effects as u want simultaneously.
>>>>
>>>> Hope this helps
>>>>
>>>> Regards
>>>> Gagan deep
>>>>
>>>> On 10 August 2010 16:05, NavaneethaNagapoori <[email protected]>wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> I have just started learning and implementing flex.
>>>>> The following effect has to appear
>>>>> when we click on one button, clicked button should zoom out and other
>>>>> components of the page have to be faded or dissolved (simultaneously).
>>>>> can someone please help me.
>>>>>
>>>>> --
>>>>> Thanks & Regards
>>>>> Navaneetha
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Flex India Community" group.
>>>>> To post to this group, send email to [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]<flex_india%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Flex India Community" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<flex_india%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards
>>> Navaneetha
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Flex India Community" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<flex_india%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/flex_india?hl=en.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Flex India Community" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<flex_india%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/flex_india?hl=en.
>>
>
>
>
> --
> Thanks & Regards
> Navaneetha
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
--
Fear is an illusion, So, face it !
RM3sh
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.