<mx:HBox width="100%" horizontalAlign="right" backgroundColor="{dayTitleBG}" 
creationComplete="setBackground()">
        <mx:VBox height="100%" backgroundColor="{dayBG}">
                <mx:Script>
                [Bindable]
                public var dayTitleBG:String;
                [Bindable]
                public var dayBG:String;
                
                function setBackground()
                {
                        if (data.date.month == calDate.month)
                        {
                                dayTitleBG == "0x002649";
                                dayBG == "0xAF1E2D";
                        }
                        else
                        {
                                dayTitleBG == "0x405C77";
                                dayBG == "0xC35662";
                        }
                }
                </mx:Script>
                <mx:Label text="{Day.format(data.date)}"  width="25" 
color="white"/>
        </mx:VBox>
</mx:HBox>

What did I do wrong in this code, it is not providing the desired result of 
changing the background colors.  Probably related, what do I need to do for the 
calDate object to exist in this dayFormat.mxml formater called from the main 
MobileCalendar.mxml file?  I currently have it defined this way in the main 
file.

[Bindable]
public var calDate:Date = new Date();


--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:37:2748
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/37
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:37
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to