I want to play a url using netstream at a particular time like 11.30 PM.
CurrentDateTime = new Date();
CurrentDF = new DateFormatter();
CurrentDF.formatString = "LL:NN:SS A"
DateTime= CurrentDF.format(CurrentDateTime);
if(DateTime=="11:30:00 PM"){
ns.play("rtmp url");
}
The above code will work if exactly the time is "11:30:00 PM" during run my flex application.. But If i run my application before that time, my code should wait for the time to become 11:30:00 PM to play my url..I know one solution for this is setting timer to check this continously...after i can stop this when it become 11:30:00 PM...But Is it any chance for problem to my application since timer trigger continuosly upto the time 11:30:00 PM? Kindly reply..