Try

 

    percentHeight = 100;

    percentIWidth = 100;

 

That should make your component stretchy. You also need to remove the delegates, which are no longer needed. Change

    addEventListener("childCreated", Delegate.create(this, handleChildCreated) ;

to

    addEventListener("childCreated", handleChildCreated);

and

    _showChild = Delegate.create(this.handleWantsToBeShown) ;

to

    _showChild = handleWantsToBeShown;

 

Finally, remove the (Void) from the argument list, which wasn't correct in 1.5 either. (It defined a argument named Void of type Object.)

 

- Gordon

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of moni_singhal
Sent: Monday, August 07, 2006 8:31 PM
To: [email protected]
Subject: [flexcoders] heightFlex and widthFlex

 

Hi Folks,
I m migrating my application from flex1.5 to flex20.
In Felx1.5 my code was like this:

public function DTabNavigator(Void) {
this.addEventListener(
"childCreated",
Delegate.create(this, handleChildCreated));
_showChild = Delegate.create(this,
handleWantsToBeShown);
heightFlex = 1;
widthFlex = 1;
}

But as the properties widthFlex and heightFlex for the resizing of
component are deprecated.
So wat shud i use instead of these properties?
If anyone have any idea abou this,plz tell me.

Thanks,
Monika

__._,_.___

--
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