krissydb
10-05-2007, 04:09 PM
Hey Guys! I learned how to use flash in school long before actionscripting ever came into the picture so this is my first attempt . . .
I was trying to make a hydro meter so I used a clock tutorial and got things set up to look the way I want however my needle, which I would like to be moving continuously around the dial, is jumping like a second hand. I guess I thought I would just be able to speed it up to look like continuous movement but not so far.
Help? Here is the actionscript I'm using.
clock.onEnterFrame = function():Void {
var clockTime:Date = new Date();
var seconds:Number = clockTime.getSeconds();
this.secondHand._rotation = seconds*6;
}
I was trying to make a hydro meter so I used a clock tutorial and got things set up to look the way I want however my needle, which I would like to be moving continuously around the dial, is jumping like a second hand. I guess I thought I would just be able to speed it up to look like continuous movement but not so far.
Help? Here is the actionscript I'm using.
clock.onEnterFrame = function():Void {
var clockTime:Date = new Date();
var seconds:Number = clockTime.getSeconds();
this.secondHand._rotation = seconds*6;
}