Reversing frames

hi,
i was wondering how can i reverse the frames…
what i mean is if for example u have a motion tween of a circle sliding to the right…
what should i write in the last frame of the motion tween so the circle will go back…
_current frame–?!
or what…
if it’s possible…
thanks ahead…
:h:

If you just want to move your circle back, just copy your first frame in your time line and paste it on the end of your timeline and create a new motion tween between your middle frame and your last frame…

Hope that helps…

i know how to do that i was just wondering if it can be done the way i asked…

maybe having previousFrame(); on the frames with an if statement?

can u explain what u mean…
and if the motion tween is 200 frames long?!
:sigh:
maybe i misunderstood u…

how’s about this:

On a button add:

  
on (rollOver) {
	_global.over = true;
}
on (rollOut) {
	_global.over = false;
}

and on an empty movie clip u can add:

  
onClipEvent (enterFrame) {
	if (_global.over == false) {
		_root.prevFrame();
	} else if (_global.over == true) {
		_root.nextFrame();
	}
}


this is just an example so u get it, do u get it? :stuck_out_tongue:

I used that code on this swf here:

[swf=“http://vincecrypt.0catch.com/animated_gotoandplay.swf”]width=300 height=60[/swf]

yes i got that…
but i already found the same answer in flashkit (searched)…
but thanks anyway…
i really appreciate ur help…
:slight_smile:

what about searching here? What makes flashkit so much better? :trout:

well…
because i remember seenig the same question as mine in flashkit… but it was a long time ago and then i had flash for only for like a week…
hell i didn’t even understand the question then…
so i went there now and searched because i was sure that the answer is there…
and i do search here in this forum too!
and flashkit isn’t that much better then this site…
in fact i like the tutorials in this site much more then there… beacuase of the explantions about every line of code and clean presentation…
:wink: