How can I tell an external .swf loaded into a container movieclip to rewind from a particular point using a button outside of the external .swf ?
I assume you mean rewind back to the start… Therefore you just do: container.gotoAndPlay(1)
container.gotoAndStop(container._currentframe-1);
put it on and enterframe and when its activated it will look like its rewinding at a 1:1 ratio. (minuse to to make it go faster ect.).
//edit, actually if you make a _global.framedirection = 1 to -1 you could just change the variable in the enterframe like 1 would be normal play and 0 would be stop and -1 would be rewind.
container.gotoAndStop(container._currentframe-_global.framedirection);
example(stop):
btn.onRelease = function(){
_global.framedirection = 0;
}
Sorry Dreeft but Temp was on the right track, I didn’t want the movie to just go back to 1 and start playing again, i wanted it to rewind itself back to frame 1…(and play all that happened on the way back to 1)
You could also use the prevFrame() and nextFrame() functions
Hey Joene could you explain this a little bit more? (thanks!)
tempcould you submit a fla explaining this more, i think this is what ive been looking for for a while. feel free to pm me
onEnterFrame = prevFrame;
:hr: