[flexcoders] Re: Questions about Canvas and TitleWindow

2009-05-04 Thread Jason
Perfect Tim, works as you advertized, thank you. 

Jason

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> Hi Jason,
> 
> For the TitleWindow, the surrounding area is affected by the
> borderAlpha.  For the canvas, you can set the backgroundColor (color is
> a style for the text).  If you're setting these with AS, you need to use
> myCanvas.setStyle("backgroundColor", 0xff);
> 
> -TH
>



[flexcoders] Re: Questions about Canvas and TitleWindow

2009-05-04 Thread Tim Hoff

Hi Jason,

For the TitleWindow, the surrounding area is affected by the
borderAlpha.  For the canvas, you can set the backgroundColor (color is
a style for the text).  If you're setting these with AS, you need to use
myCanvas.setStyle("backgroundColor", 0xff);

-TH

--- In flexcoders@yahoogroups.com, "Merrill, Jason" 
wrote:
>
> I'm creating some components on the fly with Actionscript in an MXML
> project.
>
> 1) For TitleWindow, where can I set the alpha of the surrounding
> title bar area, or whatever it's called? By default, it looks to be
> about 20% alpha.
> 2) For Canvas, how can I set the color? If I create it with code,
> there is no color property (according to Flexbuilder), but if I use
> MXML, there is. It inherits from Container, and UIComponent, so I
don't
> understand why with Actionscript's the compiler is giving an error
that
> there is no color property.
>
> All I really want is a nice background container of some kind to hold
a
> .swf file - either one of these would see to do the job, if only I
could
> set those properties like I can in MXML. Why do the properties
> available seem to be inconsistent between MXML and Actionscript?
>
> Thanks,
>
> Jason Merrill
>
> Bank of America <> Global
> Learning
> Shared Services Solutions Development
>
> Monthly meetings on the Adobe Flash platform for rich media
experiences
> - join the Bank of America Flash Platform Community
> 
>