----- Original Message -----
From: "markflex2007" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, October 17, 2008 6:51 PM
Subject: [flexcoders] Re: how to add internal padding in canvas?
> Please give me a simple demo,how to do " nest the canvas inside
> another container to get the margin"?
Something like this perhaps..
I'm assuming that the reason for the margin is to leave a gap around the
edges. Lets say you want a 5 pixel gap.
<mx:Canvas id="outerCanvas">
<mx:Canvas id="innerCanvas" width="{outerCanvas-10}"
height="{outerCanvas-10}" x=5 y=5 >
add other stuff here
</mx:Canvas>
</mx:Canvas>
Any good?
Maybe I've got the wrong idea about why you want the margin.
Paul
>
> Thanks for help
>
> Mark
> --- In [email protected], "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>>
>> You can always nest the canvas inside another container to get the
> margin..
>
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>