Framerate

Is there any way to get the framerate of the current movie using AS?

nope

[edit] … well you could get the playback framerate but not the set framerate - but of course the playback framerate could be fast enough to keep up with the set framerate making them the same but you never know[/edit]

how would you do that?

this.onEnterFrame = function(){
	if (this.lastTime){
		var curTime = getTimer();
		var dif = curTime - this.lastTime;
		trace("Playing at approx. "+ 1000/dif +" frames a second.");
		this.lastTime = curTime;
	}else this.lastTime = getTimer();
}

very nice. thanks a bunch

i even understand the code:)

welcome :wink: