Thanks a lot ! Actually i hv done al other changes which u specified in my flex2 application. This was a sample code from flex 1.5 application.
Thanks, Monika --- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > 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 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/

