Flex :: Datetime - Monitor The Date For A Change
Jul 9, 2009In Flex/ActionScript 3, is there a better way to monitor the date/time to determine if the date has changed to the next day by creating a timer that dispatches every minute?
View 1 RepliesIn Flex/ActionScript 3, is there a better way to monitor the date/time to determine if the date has changed to the next day by creating a timer that dispatches every minute?
View 1 RepliesHow to convert flex date object to sql date and time, I am using AMFPHP to connect with mysql.
View 2 RepliesIs there a way to change the Flex global Date/Time formating, so once changed to apply to the whole application?
View 1 RepliesWhat is the best way to convert a string to DateTime? The format of the string is dd/mm/yyyy hh:mm:ss.
View 1 RepliesI'm trying to change the selected date text-color.
<fx:Style>
.dateChooser{
selection-color:#000000;
}
</fx:Style>
I changed my selected date (FEB 23) selection-color to black, but I also need to change the text-color, let's say to white.
I have a situation where I have a date in this format.
Code:
var currentDate : String = "09/22/09"
and I want to be able to change this dynamically to the next date.like you had currentDate +1. The reason for this is the user selects this date but I want another field to display the next date after this.I thought about using the date object to take care of this for me but I'm not sure that will work.If I pass the date object this format it returns.
newDate = Wed Sep 22 00:00:00 GMT-0500 1909
I could start stripping out the currentDate and adding in lots of if statements for the month year and date and figuring out leap years but I thought the date object could solve all this.
For example :
input = 360 seconds
output = 6 minutes
input = 86400
output = 1 day
Is there a built-in method for this.
im using a custom component for date time, it is 12 hours and am/pm format,Now i wat to show 24 hour format in numeric stepper and am/pm should be disabled.heres my code
<mx:Script>
<![CDATA[
[Bindable] private var _selectedDate:Date = new Date();
[code].....
I need to create LineChart that display datetime points, for example:
public var stockDataAC:ArrayCollection = new ArrayCollection( [
{date: "2005,7,27,22,15,30", close: 41.71},
{date: "2005,7,27,22,16,30", close: 42.21},
[code].....
I have a movie clip to display a clock and a datagrid for showing my schedule. I want my flash to alarm with sound when the time from the clock match one time on the schedule. Here is my actionscript:
Code:
clock_mc.onEnterFrame = function() {
if (_root.timer[i]==_root.clock_mc.clock_txt.text.substr(0,5)) {
alertSound = new Sound(alertSoundMc);
[Code]....
As you can see, I use onEnterFrame to listen and check matching between time on clock and schedule but it will check all the time and when it alarmed it produced sound all the time while the time is matched. I would like my flash to alarm only one or few times.
I have create a clock which displaying in TextField named clock_txt. I want flash to do some thing when one more minute is added. Can I monitor this change and how?
View 12 RepliesI'm working on a drag-drop solution, and acting when a item is dropped on the current target (let's say an "intelligent chess-board") is a breeze, as the board fires DragEvents when items are hovering over on dropped on the it.
What I'm looking for is a way to make the board act when an item is dragged OFF the itself. Of course - when the item is dropped somewhere else, I could fire an event there and tell the board that change has been done. But this is what I want to avoid.
I wonder if there is some way to monitor a change in the displaylist of the "board", so it fires an event when a child/element is removed from "outside"?
Monitors are different sizes so does a flash player change to fit
i changed this as i have no replies is this not this would be common process to change, the size of the screen to fit different size browsers.
Is it posible to make a flash site, which will change the size when the vistors resolution is diferent? Practicly, every visitor will see the same size of the site, even if he has 800x600 or 1280x1024??Maybe making html go fullscreen but make the swf occupy only 80% of the screen, so it always have the same proportion to the users monitors.Do you have any example?
<center>
<table border="0">
<tr>
[code].....
I am making a game in AS3 / Adobe AIR that requires the user to react to certain sounds. Is there a way to inform the user up front if the system volume is muted? Moreover, is there a method to change the volume? If not, does an external cross-platform application exist that lets me monitor the volume and that I can call from Adobe AIR?
View 1 RepliesDoes the value of Stage.stageWidth or Stage.stageHeight change as per the screen-resolution, monitor-size, browser etc ?
View 2 Repliesmy 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 RepliesDoes 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]...
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)
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.
I want a chart that has several separate series running in rows across. They are largely separate charts and should not overlap, but all share the same horizontal datetimeaxis. They don't share the same y-axis, however and that's where I'm getting stuck.I have tried having a linechart series and then a plotchart series, but it will only allow a single <mx:series> per chart without having them inside the same series which as far as I can tell will place the charts on top of each other in the z-axis. I can stack them and have them completely separate charts, but it was proving to be somewhat irritating having them align correctly.
Is there any reasonable way of combining multiple charts into one like this? Basically having rows in a table where each row is a different chart but the columns are consistent. or am I going to be best served just by stacking separate ones? an illustration of what i'm going for is here: http:[url]........
I want to know is there anyway to invisible title bar for a AS3 project? and how to force program to use fix resolution and change monitor resolution to what we want?
View 1 RepliesI want to write an application that monitor the USB port, and when something is connected should show the contents of the drive (image viewer) automatically.there is any way to do that with Flex/Flash directly?or i might program another application in C in order to monitor the USB port and then comunicate with the front-end application with sockets?
View 2 RepliesI'd like to open a window in my AIR/Flex application on a second monitor if it's available. Don't know how to go about it. Tried this:mySecondWindow.x = Capabilities.screenResolutionX;
But this only gets the size of the first monitor and if I try to assign a greater value, it switches to default 100px offset. Is there a proper approach to this? My native screen is maximized in "preinitialize" and then I open the second window on "applicationComplete".
What is the reason Flash Builder 4's Network Monitor does not support applications that were created using pure ActionScript and Library projects? It seems to work only for Flex projects.
View 1 Replies[Code]...
so the problem is I can print the array but how to cast tht array to a known php type? After 5 days I finnaly figured out flex and mysql using amfphp
Do you know any way to compare a date to a range of date using the Date class in as2.
For example i want to know a given day (11-12-2009) is among the start and end date of a given range (11-01-2009 to 11-20-2009).
My Flex application (SWF) initialization takes 25 second to load 1.6mb SWF in widescreen monitor. The same SWF loads pretty fast (3 Sec) in Flat panel monitor 1024x768 resolution. What is the reason for +/- in rendering speed , +/- in CPU utilization on different monitors , screen resolution.
note: my internet sepped is 10+ mbps broadband.
I have a form in which i add two dates
Start date
End Date
I want to know how i validate that the selected start date is always less than end date(actually an expiry date).
I am querying a 3rd party web service and not all the data seems to be making it to the event handler. When I view the request/response in the Network Monitor I see a collection of data objects each containing two string variables (name, url) and two arrays (counts, breakdown). When the result handler receives the data and I view it in debug mode, the collection of data objects each only contains one string variable (name). What happened to the other string var (url) and both arrays (counts, breakdown)? what would cause this since it seems to becoming corrupt before it reaches the event handler but after it is received by the network? Is this most likely an IDE issue?
View 1 Replies