I use this:
this.onEnterFrame = function(){
if((kropp==2)&&(huvud==4)&&(bg.BGtyp==1)){
bg.nextFrame();
trace("good");
}
to know when different variabels are right. But I don´t want the check to be once every 2 second and not every frame. I could put the code in a looping mc but could I do that in a code?
/Mattias