They are styles Mark,

cavas.setStyle("top",10);

-TH

--- In [email protected], "markflex2007" <[EMAIL PROTECTED]>
wrote:
>
> But why I can do this with actionscript
>
> I have the object like
>
> public var canvas:Canvas = new Canvas();
>
> but I get error for
>
> canvas.top = 10;
> canvas.left = 10;
>
> I wonder how to do this with actionscript.
>
> Thanks
>
> mk
>
> --- In [email protected], "Paul Andrews" paul@ wrote:
> >
> > Yes, I'm just old school this time round!
> > ----- Original Message -----
> > From: Tim Hoff
> > To: [email protected]
> > Sent: Friday, October 17, 2008 7:58 PM
> > Subject: [flexcoders] Re: how to add internal padding in canvas?
> >
> >
> > Just preference, but I'd rather see:
> >
> > <mx:Canvas id="outer">
> > <mx:Canvas id="inner" top="10" bottom="10" left="10" right="10">
> > // my content
> > </mx:Canvas>
> > </mx:Canvas>
> >
> > -TH
> >
>



Reply via email to