Hi,

No, percentWidth and percentHeight are creations found only in the
UIComponent class.

Flex is based from Containers which hold things 'inside' relative to each
other.  The AS3 Flash Play  has display lists that hold DisplayObject 'on'.

That being said having percentages in AS3 outside of the flex 2 framework
would not make sense because there is no Container in the AS3 framework. I'm
not talking about DisplayObjectContainer either just it has no idea that
it's children even care about being sized .

Now for the second answer.

If you are talking about Flex - AS3;

use;

myComponent.percentWidth = 100;
myComponent.percentHeight = 100;

Peace, Mike

On 1/25/07, Mikhail Shevchuk <[EMAIL PROTECTED]> wrote:

  Hello, Flexcoders!

Is there any way to set the size property (height and width) in AS3 in
percents?

--
A vivid and creative mind characterizes you.



--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to