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", 0xff0000);
-TH
--- In [email protected], "Merrill, Jason" <jason.merr...@...>
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 <<Picture (Device Independent Bitmap)>> 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
> <http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx>
>