CSS and Variables


good day,

 

i want allow users set application background color.

 

so, have:

<mx:script>

<![cdata[

[bindable] public var applicationbackground:string="#00cc00";

]]>

</mx:script>

 

for variable , then:

 

<mx:style>

application {backgroundcolor: applicationbackground;}

</mx:style>

 

to apply color.  have component color picker , function set applicationbackground chosen color.

 

when run application, see black background, opposed  selected color.

 

what missing?

 

thanks!

 

rob

i think using actionscript set style more appropriate:

 

application.application.setstyle( "backgroundcolor", this.applicationbackground );

 

let me know if helps...

 

ben edwards



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Installation database is corrupt

Nogen der kender et simpelt hvidt template med topmenu kun - Joomla! Forum - community, help and support

Error compiling for board Arduino/Genuino Uno.