Thanks Gabriel, it works perfectly.

On Thu, Nov 20, 2008 at 5:13 AM, gabriel <[EMAIL PROTECTED]> wrote:

>   Hi,
>
>
> On Wed, Nov 19, 2008 at 10:34 AM, fotis.chatzinikos
> <[EMAIL PROTECTED] <fotis.chatzinikos%40gmail.com>> wrote:
> > Hi, i am trying to change a Panel's hide and show effect via a state.
>
> One thing that's sometimes hard to find is that you set effects as styles,
> not
> as event handlers or properties.
>
> Here's a super minimal example fragment that you can use as reference:
>
> <mx:Label
> id="testLabel"
> visible="{labelVisible.selected}"
> hideEffect="{wipeLeft}"
> showEffect="{wipeRight}"
> color="#66FF00"
> fontSize="60"
> text="TEST"
> />
>
> <mx:WipeLeft id="wipeLeft" />
> <mx:WipeRight id="wipeRight" />
> <mx:Fade id="fadeOut" alphaTo="0" />
> <mx:Fade id="fadeIn" alphaTo="1" />
>
> <mx:states>
> <mx:State name="alternate">
> <mx:SetStyle
> target="{testLabel}"
> name="showEffect"
> value="{fadeIn}"
> />
> <mx:SetStyle
> target="{testLabel}"
> name="hideEffect"
> value="{fadeOut}"
> />
> </mx:State>
> </mx:states>
>
> --
> gabriel montagné láscaris comneno
> http://rojored.com
> t/506.8367.6794
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],

Reply via email to