Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
Adobe Flex SDK 4.5 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Browser: Firefox 3.x
Language Found: English
Description
Dear Colleagues,
I'm not sure where the issue is coming from. It would be in the SDK or within Flash player. So, I picked this forum in the hope that it is the correct one.
Using Flash Builder 4, Flash 10,0,32,18, Win XP sp3, Firefox 3.5.7
Please be aware, the below code is apart of the course over through the online course titled 'Flex 4 Beta in a Week'. Thus, others will be encountering the same anomaly.
With my best regards,
berean1155
Steps to reproduce:
1. Create a Flash project using the following code in a MXML file.
version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
minWidth="1024" minHeight="768">
<!-- Exercise 2.01: Handling a user event -->
<!-- Properties of the parent ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Metadata ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Styles ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- Script ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.CalendarLayoutChangeEvent;
private function changeDateHandler(event:Event):void
{ Alert.show('You have selected ' + event.target.selectedDate.toString()); } ]]
>
</fx:Script>
<!-- Declarations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- UI components ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<s:Label x="266" y="72"
text="Vacation End"
width="176"
fontWeight="bold"
fontSize="14"
textDecoration="none"
textAlign="center"
verticalAlign="middle"
fontStyle="italic"/>
<s:Label x="34" y="22"
text="Employee Vacation Request"
height="43" width="408"
fontSize="19"
color="#1847DD"
fontStyle="normal"
textDecoration="none"
fontWeight="bold"
textAlign="center"
verticalAlign="middle"/>
<s:Label x="34" y="73"
text="Vacation Start"
width="176"
fontSize="14"
fontFamily="Arial"
color="#080000"
fontWeight="bold"
fontStyle="italic"
textDecoration="none"
verticalAlign="middle"
textAlign="center"/>
<mx:DateChooser id="startDate"
x="34" y="94"
showToday="true"
change="changeDateHandler(event)"/>
<mx:DateChooser id="endDate"
x="266" y="94"
showToday="true"
change="changeDateHandler(event)"/>
</s:Application>
2. Run the applicaton
3. Select a date from either one of the two date choose controls.
4. Observe the data found in the alter control has an invalidate date format. A timestamp with a zero value appears in the middle of the date.
Actual Results:
The result may appear as "You have selected Web Feb 24 00:00:00 GMT-0500 2010" within the text box.
Expected Results:
It should appear as "You have selected Web Feb 24 2010"
Workaround (if any):