In flex 1.5 there is, unfortunately, no property that you can set to have a background gradient color other than the default (there is in Flex 2.0).
However, that doesn’t mean you can’t have a background gradient, it just means it will take a little work. On 1.5 projects in the past, we have create a simple gradient in flash authoring and exported it as a swf. The resulting swf is usually smaller that 1K and can be set as the backgroundImage (be sure to set backgroundSize to 100% also).
Otherwise, you can look into programmatically creating a gradient with ActionScript, which would be a quite bit more work, but you wouldn’t have to rely on bringing in a whole swf.
Hope that helps,
-Peter
On 6/22/06 5:33 PM, "Erich Cervantez" <[EMAIL PROTECTED]> wrote:
Howdy folks, quick noob question: working in Flex 1.5, and I’d like to have a 2-color gradient for the background color (rather than the default gray, or some other solid color). I think I understand that you can have a backgroundImage attribute or a backgroundColor attribute but not both. And the “fillColors” attribute will assist in tinting the background color (or image?). Hmm, anyway, I can’t get a gradient going…anyone know of a trick or am I forced to create a background image anyway?
E
8888/ \8888® PETER BAIRD
888/ \888 User Experience Consultant
88/ / \88 Adobe Consulting | Adobe Systems, Inc
8/ /8\ \8 275 Grove St. Newton, MA
/ /888\ \ Office: 617.219.2126 | Cell: 617.803.6804
\8\ AIM: pbaird00 | Y!IM: pbaird00
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

