Flex :: Date - Make DateChooser Show SelectedDate?
May 26, 2011
I got a Problem with my DateChooser. When clicking the control directly it highlights the date as it should. When selecting the date programmatically it won't show.
var date:Date = notification.getBody() as Date;
_view.dcMiniCalendar.selectedDate = date;
trace tells me, that date and _view.dcMiniCalendar.selectedDate carry the correct values. I already tried to use _view.dcMiniCalendar.invalidateDisplayList() (and some other invalidate functions as well) but neither with nor without them I get that date to be shown selected in the control.
View 1 Replies
Similar Posts:
Oct 16, 2010
all I want to do is check to see if a date is selected, trace something; else, trace something else. simple enough right?assuming my_dc as DateChooser instance name, I use:
this.onEnterFrame = function() {
yesterday = new Date(2009, 0, 22);
my_dc.selectedDate = yesterday;
[code].....
View 5 Replies
Dec 13, 2010
If you have a DateChooser control next to a text control and you left click your mouse to select the text then continue holding down the mouse button and letting the mouse button up while over the datechooser control, the selectedDate value changes to the date you are hovering over. I have users that are having issues with this and it happens unintentionally because of the proximity of the two controls. I cannot find a way to stop this effect. Basically I would want the selectedDate to only change if the user actually clicks the calendar control ie. mouseDown or click. Calling functions in those events do not change this behavior. I need a way to disable the control from changing the date on the mouseUpEvent (I think).
View 1 Replies
Aug 7, 2010
I'm using the selectableRange property of a DateChooser, but the DateChooser will not allow me to "select" the first date within the selectableRange.
Here is the code. Give it a go.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:comps="comps.*"
backgroundColor="0xFFFFFF"
layout="vertical" xmlns:text="flash.text.*">
[Code].....
Try selecting Jan 1 - Jan 10 using Shift-click. No go. But try selecting Jan 2 - Jan 11, works fine. What's up with Jan 1?
You can also find the app here:[URL]
View 1 Replies
Jun 5, 2011
On the DateChooser component, it shows the days for only the current month... but i'd like to show some of the previous month's days and some of the next month's days.Is there a property to set on the DateChooser component to show 42 days. I mean, to show some of the previous month's days + the current month's days + some of the next month's days. I'm not sure what this is called...If you look at a typical month calendar, for example for June 2011 it shows:
S M T W Th F Sa
20 30 31 1 2 3 4
5 6 7 8 9 10 11
[code].....
Is there a property that I've overlooked which shows some of the days from the prev. month and next month in the current month view? Or would I need to extend the DateChooser component and override a method?
View 1 Replies
Aug 31, 2011
i downloaded sickworks datechooser AS3, i can change the display properties using flash code , i need to display the date in textbox when i click the date from datechooser in AS3
View 3 Replies
May 28, 2010
I have a XML file with a few concert dates. In my flash/AS3 file, I would like to show only the up coming event, relative to current date. Like this:
Event 01: 30-05-2010
Event 02: 02-06-2010
Event 03: 05-06-2010
Today is 28-05-2010, so I need to list Event 01. On 01-06-2010 I need to list Event 02. I have the basic AS3 code for listing the XML working, but I'm having trouble filtering the result.
View 2 Replies
Oct 30, 2009
I'm trying build a simple band site using flash and as2. All I want to have is a page listing shows that sorts them according to date and also when the show date has passed drops that entry from view.I can do this easily enough with a database and php but want to learn how to do it in actionscript. Here is what I currently have, shows load from the xml file into a simple textbox:
Code:
scrollBar.target = shows_txt;
showsXML = new XML();
[code]....
View 0 Replies
Mar 31, 2010
[code]....
I am setting my seletedDate in my DateChooser like this. The format i am getting from the Database is 2009-12-30
View 4 Replies
Mar 9, 2004
I'm fairly new to ActionScript and was wondering if anyone had an idea how this effect was done:[URL]..Click on a show date and the link zooms up and fills the screen giving show info. Then when you click the back button it shrinks back to where it was on the calendar.
View 3 Replies
Jan 8, 2009
[URL] how to make a date countdown. I now want to take it a bit further. On my site I have three gears that just continuously turn; now what I want to do is that over a period of time, these symbols change. Like say every 2 hours the symbols change to a different colour or something, and at pacific dates more gears will appear.
View 1 Replies
Jul 26, 2011
Setting the text property of a flex DateField makes the selectedDate property of that DateField go to null.I need to set the text property so that I can use a particular format (DD-MMM-YYYY).
View 2 Replies
Aug 2, 2010
I want a to user a DateChooser to allow a user to select a date in a given month and year. I want to set the month and year programmatically and only allow the user to select the date/day. I can do this for the year easily by setting the minYear and maxYear to whatever year I want, but I am not seeing a strait forward way of disallowing the user to select a different month?
View 4 Replies
Aug 17, 2011
How I can change the display of Month and Year display to Japanese style (i.e. Year Month) as in Header of Flex Date Chooser. What I would like to convert the style
8月 2011年 to 2011年 8月.
Code I used to do that,
dateFrom.dayNames = ['日', '月', '火', '水', '木', '金', '土'];
dateFrom.monthNames = ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'];
dateFrom.yearSymbol = "年";
where dateFrom is the id of the DateField.
View 1 Replies
Mar 18, 2010
I'm writing a Flex application and I came across what I think is a weird problem. I want to create a text box and a DateChooser as the datefield didn't do what I wanted and it's Halo so I can't skin it easily. I want the DateChooser to show when I click on the text input. Here is an except from my code:
[Code]...
View 1 Replies
Mar 29, 2010
ExtendedDateChooser class is great solution for simple event calendar used in my flex project. You can find it if google for "Adding-Calendar-Event-Entries-to-the-Flex-DateChooser-Component" with a link of updated solution in comments of the post. I posted files below. Problem in that calendar is text events are missing when month is changed. Is there updateCompleted event in Actionscript just like in dateChooser flex component? Like in:
[Code]...
View 1 Replies
Sep 28, 2010
I have an Array of days. I want those days to have a different background-color in the DateChooser component, say red.
View 3 Replies
Nov 30, 2009
my date of string like (2009-12-03 21:05:00) date with time . so i used to store var newdate:Date=new Date(Date.parse(startdate)); but shows some errors.and also i tried to split string(date) used date function likevar datenumber:Number= (new Date(Date.parse(startdate))).getDate();
View 1 Replies
Aug 24, 2010
Does anyone know how to get actionscript to render a null date value '000:00:00T00:00:00'? I am calling a web service that expects date fields in the SOAP xml. I need some of these dates to serialize as null and I can't see how to produce null. The closest value I can get is '1899-11-30T00:00:00Z'. Below is the code I am using:
[Code]...
View 3 Replies
Jul 25, 2011
My DateChooser code and its style code is shown below:
<mx:DateChooser id="dc" cornerRadius="0" bottom="0" width="100%" allowMultipleSelection="true" allowDisjointSelection="false" styleName="dateChooserGradient" change="fetchDateAgenda(dc.selectedDate)"/>
And the dateChooserGradient:
.dateChooserGradient {
header-colors: #133c59, #29506c;
todayStyleName: myTodayStyleName;
headerStyleName: myHeaderStyleName;
weekDayStyleName: myWeekDayStyleName;
dropShadowEnabled: false;
arrowBorderThickness:2;
arrowColor: #062338;
arrowAlpha: 0.1;
}
What I actually want for my arrows is a transparent background, with borderthickness to be 2, and the arrows and bordercolor to be #062338. Also if I can make the width and height of the arrow itself a bit bigger then what it is as default.
View 1 Replies
May 5, 2011
I would like to see different colors in my DateChooser / CalendarLayout for weekdays and weekend days. I would also like to achieve this using a custom stylename (for example: "weekColor" and "weekendColor".
View 2 Replies
Mar 13, 2012
In a datechooser component i want to get the all date values of a particular column in a month eg: All date values that occur in saturday in an array.
View 2 Replies
Jul 3, 2006
I'm trying to inform people of how long ago the website was updated on the welcome screenWhen I make a revision to the swf I plug in the date in the "Update" field and then it should subtract it from the day the website is viewed.
Code:
Now = new Date();
Update = new Date(2006, 7, 1);
[code]....
View 3 Replies
Aug 25, 2009
I need to create a timeline between 2 given dates, ie:2006-01-20 - 2009-02-14
The timeline must be drawn on a given width (can be altered), ie: 600px
But I need to add markers, one on year beginning, and others 4 times during the year (each 73 days aprox)
View 2 Replies
Sep 29, 2009
I am experiencing a very strange behavoiour of Flex Date object. My web service is written in .Net 3.5 and all object which I am retriving or updating have Creation Date (Date Type) in .Net code.
But when I am calling .Net web service and displaying data in Flex, Flex displaying a different Date than what stored in web service. When I update my object using Flex UI, every time update time is very different than actual update time set by .Net code.
View 4 Replies
Sep 2, 2010
I would like to create a website 'banner' application in flash that uses action script to show or hide different movie clips based on a start and end date.
Originally I would have to manually upload new banners to a website one at a time. But if I had one file that could contain multiple banners I could have them turn on and off based on what day it was. Is there a way to do this with action script?
View 3 Replies
May 30, 2004
I put some AS on a MC that has a dynamic text box in it. here's the code on the dateMC:
onClipEvent(load) {
currentTime = new Date();
month = currentTime.getMonth();
[code].....
View 3 Replies
Aug 11, 2010
Is there a way to make a Flex 3 Datagrid show only the first node of an arrayCollection, instead of showing all of the arrayCollection's data?[code]...
View 3 Replies
Apr 15, 2005
How to script a dynamic text bar to show the date and time that it is now, plus make it work properly as a clock.
View 5 Replies
Sep 5, 2009
I have a datefield labeled my_datefieldI have a dynamic text field labeled my_textWhat code can I use for the selected date of my_datefield to display in my_text?So say in the datefield I click on October 11th
View 2 Replies