I have a Flex 3.5 application that will work for several purposes, and as part of the visual changes that I would like to indicate in order to indicate which mode the application is in, I want to change its background color.
Currently, the application tag looks like this:
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:com="ventures.view.component.*"
xmlns:views="ventures.view.*"
layout="absolute"
preinitialize="onPreInitialize()"
creationComplete="onCreationComplete()"
applicationComplete="onApplicationComplete()"
click="onClick(event)"
enabled="{(!chainController.generalLocked)}"
backgroundGradientColors="[0xFFFFFF, 0xFFFFFF]"
>
I tried using binding for attributes backgroundColorand backgroundGradientColors:
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
...
backgroundColor="{app_background_color}"
>
- and -
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
...
backgroundGradientColors="{app_background_color}"
>
but for the former binding it is not allowed, and for the latter there is a warning that:
Data binding will not be able to detect destinations for "app_background_color".
, , , , setStyle(), , , , , .
, <mx:Canvas></mx:Canvas>, , Div-itis HTML - .
?