Hi,

Also using BindableCSSStyles like so doesn’t change the style box. In fact the 
initial style is not set either. 

Is it intended to be used in this way? If so that looks to be a bug to me.

<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
               xmlns:js="library://ns.apache.org/flexjs/basic">

    <js:beads>
        <js:BindableCSSStyles />
    </js:beads>
    
   <fx:Script><![CDATA[

       [Bindable] public var boxStyle:String = "background-color:black";
       
       public function clicked():void {
           boxStyle = "background-color:red";
       }
       ]]></fx:Script>

   <js:valuesImpl>
       <js:SimpleCSSValuesImpl/>
   </js:valuesImpl>

   <js:initialView>
       <js:View>
           <js:VContainer>
               <js:Container id="box" width="100" height="100" 
style="{boxStyle}" />
               <js:TextButton text="Click me" click="clicked()" />
           </js:VContainer>
       </js:View>
   </js:initialView>

</js:Application>


Thanks,
Justin

Reply via email to