Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
Ian Skinner #1
No date displaying revisited.
I have modified my code calling a custom component to pass in the entire
object rather then just the date property of the object. This seems to
be working as I get a display of the proper number of objects without
any error thrown. But the display of the date of the object is a blank
space.
Can somebody explain why passing the entire object, rather then one
property of the object, is causing me a problem?
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%">
<mx:Script>
<![CDATA[
import Day;
//Define public variables
[Bindable]
public var dayData:Day;
]]>
</mx:Script>
<mx:DateFormatter id="dayNum" formatString="DD" />
<mx:HBox backgroundColor="0x002649" width="100%" horizontalAlign="right">
<mx:Label text="{dayData.toString()}" color="white" />
<mx:HBox backgroundColor="0xAF1E2D" horizontalAlign="center">
<mx:Label text="{dayNum.format(dayData.date)}" color="white" />
</mx:HBox>
</mx:HBox>
</mx:VBox>
I call this custom component with the following code.
<mx:Repeater id="dayCells" dataProvider="{days}"
startingIndex="{weekRows.currentItem}" count="7">
<mx:GridItem width="14%">
<ian:dayFormat2 dayData="{dayCells.currentItem as Day}" />
</mx:GridItem>
</mx:Repeater>
--------------
Ian Skinner
Web Programmer
BloodSource
[url]www.BloodSource.org[/url]
Sacramento, CA
---------
| 1 | |
--------- Binary Soduko
| | |
---------
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
Ian Skinner Guest
-
displaying a date as text...
Hi, reviving a very old thread here! I have used the DateFormatter, but unfortunately cannot seem to get it to work as I like. I would like to... -
displaying the date
I am trying to diplay a simple date that is stored in a database when the user types it into a forkm. I am using #date# to display it. The filed is... -
Displaying Date From a Database Record
Hi, Can anyone help??? I am trying to display the date that a record was posted to a database to an asp page but it appears in the wrong format... -
Displaying next sunday's date
Looking thru my resources, I cannot find a simple way of displaying next sunday's date depending on what todays date is. I'd like to do it without... -
displaying a date
Simple question - is there a way to display only the date and year of a text box that contains a date field? Also, is there a way to allow this?...



Reply With Quote

