[FMX] This should be easy, (i hope)

ok, here is my question. i am using scripts to rewind a certain MC when a button is pressed. all works well and good until I tried to do the same with another MC on the main timeline as well.
this is how it is currently set up:
(working MC)
xtraMC has this code on it-
onClipEvent (enterFrame) {
if (_root.direction == “rewind”) {
this.prevFrame();
}
}
then inside it, on the first frame is this-
_root.direction = “foward”;

and the last frame-
stop();

then, on the button on the main timeline that rewinds it is this-
on (press) {
_root.direction = “rewind”;
}

i tried doing the same for labelMC (the second MC on the main timeline) but instead of _root, i tried other things, and nothing is working. can someone please tell me how to do it the right way?
thanks in advance.:link:

you said that it works if you do it with just one object.

can you post a copy of an FLA that you tried to get to work, but couldn’t?

There is also a whole thread previously that was pretty much dedicated to different forms of the forward backward code…

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=11427

holy cow! i got it to work! thanks both of you guys for answering. i checked out that post though, and after looking at some of the codes, i treid revising mine and it worked. this is what i did.

on the 2nd MC,

onClipEvent (enterFrame) {
if (this.direction == “rewind”) {
this.prevFrame();
}
}

on the button that makes it rewind

_root.aboutLabel.direction = “rewind”;

and then on the first frame

this.direction = “foward”;

:beam:

Glad you got it working :slight_smile: