> I'm passing in a colour via flashvars and then attempting to set the
> background colour with:
>
> backgroundColour = Application.application.parameters.background_colour;
>
> application.setStyle("backgroundColor", "0x" + backgroundColour);
>
> But the concatenation doesn't work. Trawling the docs, I haven't even found
> a way to create a colour object from a string.
>
> Any ideas how I might achieve this?You must have a backgroundColor defined initially, or you can't set its style at runtime: http://jessewarden.com/2005/01/flex-chronicles-8-backgroundcolor.html Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5537 Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
