Hi,
I’m working on an animation with a simulated analog clock. I’m trying to get a seperate movie clip instance to play when the clock points to a certain time.
I have a stop action at the start of the workClip movie clip, and a few lines of AS within the clock1 mc to make the hands turn. Nothing elaborate.
Here’s my code so far which sits on the main timeline to control the interaction between clock1 and workClip. If anyone can help me find the trouble, I’d really appreciate it.
Deb
// A value of 0 means its morning, 1 means evening
var ampm:Number = 0;
// If the hour hand (hand2) is pointing down (6:00) then play
if (this.clock1.hand2._rotation==180) {
if (ampm==0) {
this.workClip.gotoAndPlay(2);
ampm=1;
}
else {
this.workClip.gotoAndPlay(86);
ampm=0;
}
}