Thanks Irina and Mike... got that working now.
-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle
Sent: Saturday, January 20, 2007 7:02 PM
To: [email protected]
Subject: Re: [flexcoders] Re: Modules :: percentWidth and
percentHeight seemingly not honored
Irina,
:) Thanks, I didn't even think about those properties in the
mxml. For those who are reading this in the future, this workaround does
work.
Use the percentWidth and percentHeight in your mxml that extends
Module if you want percentage width and height to work when the module
is loaded into the shell.
Peace, Mike
Thenks again Irina.
On 1/19/07, iviivi_us <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:
Try
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> "
percentWidth="100" percentHeight="100" >
.
.
.
</mx:Module>
and (module has to be compiled)
<mx:ModuleLoader url="cmpSponsor.swf" width="100%"
height="100%" />
Irina Vovkoriz
--- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Ok,
>
> Update.
>
> Now that I ditched ModuleLoader and went to the real
thing
ModuleManager,
> meaning;
> - getModule()
> - load()
> - READY
> - moduleInfo.factroy.create()
> - child.percentWidth = 100;
> - child.percentHeight = 100;
> - addChild(DisplayObject(child))
>
> everything works as expected.
>
> Is this a bug or really, am I missing something that
is right in
front of my
> face? :)
>
> Peace, Mike
>
> On 1/19/07, Michael Schmalle <[EMAIL PROTECTED]>
wrote:
> >
> > Hi,
> >
> > Is it me or...
> >
> > I have simplified the case;
> >
> > TestTabPane.mxml module
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Module
> > xmlns:mx=" http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> "
> > borderColor="#FF0000" borderStyle="outset"
> > width="100%" height="100%">
> >
> > </mx:Module>
> >
> > Module loader inside a Cutome Component;
> >
> > <mx:ModuleLoader id="moduleLoader"
borderStyle="solid"
> > borderColor="#FF0000"
> > width="100%" height="100%">
> >
> > </mx:ModuleLoader>
> >
> > I for the life of me cannot get the module to size
100% - 100%.
> >
> > I am I missing something with loaderInfo or
something?
> >
> > I took the easy ColumnChartModule.mxml and the
loader example
from that
> > out of the docs and couldn't even get the chart
module to stretch
when
> > loaded into a module loader.
> >
> > Any thoughts?
> >
> > Peace, Mike
> >
> >
> > --
> > Teoti Graphix
> > http://www.teotigraphix.com
<http://www.teotigraphix.com>
> >
> > Blog - Flex2Components
> > http://www.flex2components.com
<http://www.flex2components.com>
> >
> > You can find more by solving the problem then by
'asking the
question'.
>
>
>
>
> --
> Teoti Graphix
> http://www.teotigraphix.com
<http://www.teotigraphix.com>
>
> Blog - Flex2Components
> http://www.flex2components.com
<http://www.flex2components.com>
>
> You can find more by solving the problem then by
'asking the
question'.
>
--
Teoti Graphix
http://www.teotigraphix.com <http://www.teotigraphix.com>
Blog - Flex2Components
http://www.flex2components.com <http://www.flex2components.com>
You can find more by solving the problem then by 'asking the
question'.