thanks for the workaround -TH. will have to do for now.
same problem seems to exist when using the Fade effect.

regards
-BH


--- In [email protected], "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi,
> 
> I've noticed some interesting behavior with Beta3 like this as 
well. 
> For now, you could use a work-around like this:
> 
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
> <http://www.adobe.com/2006/mxml> ">
> <mx:Script>
> <![CDATA[
> import mx.effects.*;
> 
> private function dothis():void
> {
> var resize1:Resize = new Resize(panel1);
> resize1.duration = 300;
> resize1.widthTo = (panel1.width == 0) ?
> 300 : 0;
> resize1.play();
> if (panel1.width != 0){panel1.title = "";} else {panel1.title 
= "Hello
> World";}
> }
> ]]>
> </mx:Script>
> <mx:Panel id="panel1" title="HelloWorld" width="300"
> height="200"/>
> <mx:Button label="resize" click="dothis()"/>
> </mx:Application>
> 
> -TH
> 
> --- In [email protected], "bhaq1972" <mbhaque@> wrote:
> >
> > hi
> >
> > In my example i'm resizing a panel's width from 300 to 0 (and 
vice
> > versa). However i've got one issue. I sometimes see a ghost of 
the
> > panel's title still there. somekind of refresh issue? how do i
> > remove it.
> > thanks
> >
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
> > <mx:Script>
> > <![CDATA[
> > import mx.effects.*;
> >
> > private function dothis():void
> > {
> > var resize1:Resize = new Resize(panel1);
> > resize1.duration = 300;
> > resize1.widthTo = (panel1.width == 0) ?
> > 300 : 0;
> > resize1.play();
> > }
> > ]]>
> > </mx:Script>
> > <mx:Panel id="panel1" title="HelloWorld" width="300"
> > height="200"/>
> > <mx:Button label="resize" click="dothis()"/>
> > </mx:Application>
> >
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to