Okay I had a look-see. Seems a bit complicated for what you want to do.
I have always tried to be as simple as possible, and this is another case where it seems another option should be easier.
To start you have 2 MCs, one that slides to the right on mouseOver, and a second under that one which contains a text box etc.
Lets combine them into one MC.
SO you have moving_MC and text_MC. Okie dokie. Open moving_MC in edit mode.
I am not sure your layout here so you will have to adjust as needed
moving_MC has 3 frames. Frame 1 is the MC as it sits on stage, with a stop(); code on it.
go to frame 2, this is where the moving_MC moves to the right. Add a new layer with a blank keyframe on frame 2. Make sure this layer is BELOW the other.
Now from your library, drag text_MC to the stage and position it where needed.
(note if you have this moving right as a tween, it will be a child of this current layer selection, you should add your text_MC to this child)
now for the code.
you obviously have a: stop(); on frame one. On your scripts layer of frame 2 you should have a stop(); as well. Also frame 3 (this should be your "return" or moving left animations) should have a stop(); AND inside on the tweening frames the very last one should have this:
Code:
_root.moving_MC.gotoAndStop(1);
now on the top level of this entire MC add this to your Actions Panel:
Code:
on(rollOver){
this.moving_MC.gotoAndPlay(2);
}
on(rollOut){
this.moving_MC.gotoAndPlay(3);
}
You may need to play around with it a bit to get it perfect, but the idea is that when you mouseOver the moving_MC it will go to the tween frame and play, in essence showing the item moving to the right, and revealing the text_MC under it. When you mouseOut then you will go to frame 3 which shows the moving left animations and when it reaches it's end it will jump back to frame 1 and stop. All is back to where it started.
Obviously you will have to play around with the exact labeling and parent/child calls in the codes, but I think you get the idea.
Bookmarks