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" <[EMAIL PROTECTED]> 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 >

