alright, cs3 is telling me i have to call the .as file to use it. but i ahve it set in the linkage of an MC.
the class:
[AS]
import flash.display.MovieClip;
import flash.events.*;
class dayNight extends MovieClip {
private var time:int = 0;
private var count:int = 0;
public function dayNight():void {
stage.addEventListener(Event.ENTER_FRAME, update);
}
private function updateRot() {
if (count==5) {
this.rotation += 1;
count = 0;
}
}
private function addValue() {
count += 1;
this.updateRot();
}
public function update(event:Event):void {
++time;
if (time == 120) {
this.addValue();
time = 0;
}
}
}
[/AS]