Maybe this will help
http://www.flexdaddy.info/2005/02/21/sizing-apps-within-the-loader-control/

Andrew
www.flexdaddy.com



--- In flexcoders@yahoogroups.com, "Andrew Spaulding" <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> As the loader is not a component it doesnt have any concept of size,
> it is merely a control, and a sometimes difficult one at that.
> 
> In your Positions.mxml try placing the following in a script block at
> the start of the application:
> 
> // Check for a _parent movieClip and get the available HEIGHT
> function getPreferredHeight() : Number
> {
>       if ( _parent )
>       {
>               return _parent.layoutHeight;
>       }
>       else
>       {
>               return super.getPreferredHeight();
>       }
> }
> 
> 
> // Check for a _parent movieClip and get the available WIDTH
> function getPreferredWidth() : Number
> {
>       if ( _parent )
>       {
>               return _parent.layoutWidth;
>       }
>       else
>       {
>               return super.getPreferredWidth();
>       }
> }
> 
> 
> This will return the available width and height that the loader can
use. 
> 
> hope this helps,
> 
> Andrew Spaulding
> www.flexdaddy.com
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "sanjayd" <[EMAIL PROTECTED]> wrote:
> > 
> > I will pay $20 to the first person who can solve this problem !!
> > 
> > Please look at this code:
> > http://www.geocities.com/sanjayd.rm/freelance/positionsRepoRates.zip
> > 
> > when you bring up the application using via 'Main.mxml',
> > the grid in the 'Positions.mxml' app does not show all the columns !
> > The last column is clipped..any idea why ?
> > Thanks in advance. Sanjay.
> > 
> > I will pay $20 to the first person who can solve this problem !!





 
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