StupidRalph
10-14-2006, 01:26 AM
I want to be able to move the stop() around on the timeline based on a condition. The condition it the hour of the day.
For Ex.
//get date info from system
mydate =new Date();
myhour = mydate.getHours();
switch (myhour) {
case 1:
//play and then stop play head on frame 24;
break;
case 2:
//play and then stop play head on frame 27;
break;
default:
//play and then stop play head on frame 30;
}
The reason I didn't think I could use gotoAndStop() is because I want it to play until the desired stop frame at which point it would stop, opposed to jumping directly to the stop frame and stopping.
Any suggestions?
For Ex.
//get date info from system
mydate =new Date();
myhour = mydate.getHours();
switch (myhour) {
case 1:
//play and then stop play head on frame 24;
break;
case 2:
//play and then stop play head on frame 27;
break;
default:
//play and then stop play head on frame 30;
}
The reason I didn't think I could use gotoAndStop() is because I want it to play until the desired stop frame at which point it would stop, opposed to jumping directly to the stop frame and stopping.
Any suggestions?