[flexcoders] Re: horizontalAlign Puzzling

2010-01-22 Thread criptopus
Yup that did it!

--- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
>
> I think because horizontalAlign is a style, not a property.  Try setStyle();
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "criptopus"  wrote:
> >
> > var boxArray:Array=new Array();
> > var boxIdx:int=boxArray.length;
> > boxArray.push(new Box());
> > boxArray[boxIdx].percentWidth=100;
> > 
> > Why not...?
> > 
> > boxArray[boxIdx].horizontalAlign="center";
> > 
> > - Stephen
> >
>




[flexcoders] Re: horizontalAlign Puzzling

2010-01-21 Thread turbo_vb
I think because horizontalAlign is a style, not a property.  Try setStyle();

-TH

--- In flexcoders@yahoogroups.com, "criptopus"  wrote:
>
> var boxArray:Array=new Array();
> var boxIdx:int=boxArray.length;
> boxArray.push(new Box());
> boxArray[boxIdx].percentWidth=100;
> 
> Why not...?
> 
> boxArray[boxIdx].horizontalAlign="center";
> 
> - Stephen
>