Mc not playing

On the site I’m building, I have various objects on a wall, each of which is its own movie clip with appropriate content in side. When you click on one, it zooms into that object.

A couple of them are built so that on frame one of the mc they have an aesthetic design, which is supposed to transition into the actual content once they are zoomed into. Those mc’s are built with a stop(); in the first frame, and the transition starts in frame 2 of the movie clip.

For some reason they won’t play, though, when I tell them to. So I want to make sure I’m doing this right. Attached to the frame that is zoomed into the mc, I have a stop(); to stop the root, and after that I put the code to start the mc. I have tried mcname.gotoAndPlay(2);, mcname.gotoAndPlay(“namedsecondframe”);, mcname.play();, and a couple other variations of the same idea.

Isn’t that correct?

you could try

_root.mcname.onRelease = function{
gotoAndPlay(2);
}

or

_
_root.mcname.onRelease = function{
gotoAndPlay(2);
}

other than that i would just look at where are are placing the code.Try placing it on the as layer of the root or on the mc that you are working with. You migt also try setting up an invisible btn that on click plays mcname(2)

corrections:

_root.mcname.onRelease = function{
gotoAndPlay(2);
}

or

_parent.mcname.onRelease = function{
gotoAndPlay(2);
}

other than that i would just look at where are are placing the code.Try placing it on the as layer of the root or on the mc that you are working with. You migt also try setting up an invisible btn that on click plays mcname(2)[/quote]

Thanks for the suggestions! Unfortunately, they really wouldn’t totally fix the specific issue I’m having. The mc’s aren’t supposed to actually start playing until they are completely zoomed in on, so a button click wouldn’t work unless I were to add a few frames ahead of the transition inside the mc, to make it seem as if it wasn’t playing until zoomed in.

I do have the code on an action layer of the root, on the frame where the mc is supposed to start playing.

I’m a bit stumped on this.

post the code

Is your zooming a tween or do you use code? Basically whatever is doing the zooming, when you reach the end of the zoom you want to add the code to play. The trick is using the correct pathname to target the frame you want to start playing from. :hr:

Thanks guys. Still no luck though.
Defective, I posted several variations of the code. This is the code currently on the action layer of the root, on the frame that ends the tween to zoom in:

stop();
mcname.gotoAndPlay(2);

Lunatic, that should answer your question too. :slight_smile: I’m using a tween. I have a keyframe at the end of the tween with the above code on it. In the mc, frame 1 has a stop(); on the keyframe, and frame 2 has a blank keyframe in the actions layer. I have also tried adding play(); into the keyframe on frame 2 of the mc’s action layer.

Am I wrong, or shouldn’t that be working…?

so that code is on the last frame of the zoom tween in an mc? or is the tween on the root?
try

stop();
_root.mcname.gotoAndPlay(2)

The code is on the root. I did try that code, and unfortunately it too did not work. Thanks though! This just seems very weird to me…

I suppose it’s not too important in the end. Mostly I’m just baffled as to why it’s not working. I’m changing the structure of the site slightly so that not so much needs to be displayed on the NAV page, meaning only dummy mc’s will be displayed until they are zoomed into. Because of that, the mc won’t need to have a stop(); on its first frame - it should begin playing as soon as it appears.
The reason I’ve kept looking for an answer is really just for learning purposes - if I have a simple misunderstanding about simple coding like this, more advanced coding could cause some major headaches.

I’d say post your fla but I don’t have Flash 8, only mx04 on this machine. Maybe someone else can take a look at it though? Seems like it should work.

I’ve changed a lot of stuff since the problem popped up. But later on tonight or soon I’ll put something together to show what’s gonig on. Thanks for your help!