Another option for onEnterFrame

Hey Guys-

I have a code the moves an image 10 pixels on every frame. I need this to happen still but I only have one frame. What can I do besides the onEnterFrame for this code so it will still move without stopping?

pic1_mc.onEnterFrame = function() {
pic1_mc._x += 10;
if(pic1_mc._x >= 374) {
pic1_mc._x = -276;
pic1_mc.loadMovie(myPics[curPic++]);
if(curPic >= myPics.length) {
curPic = 0;

I think we have a winner!

[quote=randomagain;2349896]I think we have a winner![/quote]Don’t reply unless there’s an actual purpose… if people search and see there’s a reply, they’d expect something helpful.

Not the clearest of questions though, from what I think this is just a misunderstanding of how onEnterFrame works. onEnterFrame runs whenever … well, flash enters a frame; this is independent of the actual number of frames there are in a movie(clip). If you have 1 frame and a frame rate of 30 an onEnterFrame will run 30 times a second regardless

you can always use the tween class with a yoyo…?

dont understand your question…