I think because horizontalAlign is a style, not a property.  Try setStyle();

-TH

--- In [email protected], "criptopus" <sd_br...@...> 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
>


Reply via email to