Andrew:
I looked at your solution & now I have code like this:
// the following 2 methods are so that
// child apps load at their regular size (not scaled) and fill
the
loader window
function getPreferredHeight()
{
return parentDocument.layoutHeight;
}
function getPreferredWidth()
{
return parentDocument.layoutWidth;
}
This works 'more or less' i.e. the components inside the loader show
up without getting clipped. However, if I bring up the app inside of a
small browser window & then maximize the browser window the components
inside the loader somehow get clipped..I think that they show only 800
pixels by width..any idea, why this is happenning ?
Sanjay
--- In [email protected], "Andrew Spaulding" <[EMAIL PROTECTED]> wrote:
>
> Maybe this will help
>
http://www.flexdaddy.info/2005/02/21/sizing-apps-within-the-loader-control/
>
> Andrew
> www.flexdaddy.com
>
>
>
> --- In [email protected], "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 [email protected], "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/