Adjusting frame rate of imported movie

My main movie is running at 30fps and i imported a previously created animation i.e 12fps…now my both the movies playing at 30fps.

I want to run the 12fps movieclip to run at 12fps and not on 30fps. Pleease tell me which code will do this…i have read other posts in the forum…but not clear, so anyone can help.

It’s not possible to change the frame rate with AS but you can play the frames using setInterval. I can’t save to MX so hopefully someone can convert it for you or you can try and make sense of this code:

first frame of animation:

if (!playInt) {
 this.stop();
 var playInt = setInterval(this, "nextFrame", 1000 / 12);
}

last frame of animation:

this.gotoAndStop(1);

:slight_smile:

Thanks, this is working fine.