Sure, but you will need to build it.

 

I’d create an associative array consisting of and id as key/property name, and, as the value, either simple time number, or an object if you want to store more complex data.

Var oOpSpec:Object = new Object();

oOpSpec.datetime = scheduledDateTime;

oScheduledOperations[myOperationId] = oOpSpec;

Then you’d need a conditional function to check the scheduled time against the current time.

Var oOpSpecCur:Object = oScheduledOperations[myOperationId];

            If (oOpSpecCur.datetime < dateTimeNow) return true;

The benefit of the associative array is you won’t have to iterate through and compare keys to access, add or modify a scheduled item, but you should check for undefined.

Tracy


From: [email protected] [mailto:[email protected]] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 1:52 PM
To: [email protected]
Subject: [flexcoders] Is there a way to schedule something with Flex

 

Then have a button only work IF the time that is scheduled matches the current time?

 



Yahoo! Groups Links

Reply via email to