This bug has been fixed internally and will be in the Flex 2.0 release.

 

Thanks for pointing it out to us.

 

Jason

 


From: [email protected] [mailto:[email protected]] On Behalf Of Tim Hoff
Sent: Monday, June 19, 2006 7:35 AM
To: [email protected]
Subject: [flexcoders] Re: Flex2B3 - Resize effect problem

 

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">
<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" <[EMAIL PROTECTED]> 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! >
>

__._,_.___

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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to