Clip Control

I am new to flash MX, i stoped making flash movies back in flash 4, hehe…

So this is new stuff is kind of hard.

basicly here is what I need:

I created a small movie clip (loops)

i made a tween that makes it go from 1 end to the other end, but I can’t make the clip stop / or goto a diffrent frame withen the clip when it reaches the other side, anyone help with this?

an easy way please.

All you need is a couple of lines of ActionScript in the last frame of your movie clip.

To make it stop, you just add a

stop();

If you put this in a clip, always put this at the end of any other ActionScript, otherwise the rest of the code won’t work. :slight_smile:

To play another frame, you can use

goToAndPlay(framenumber);

Or if the target frame is in another novie clip, you can use

_root.movieclipname.goToAndPlay(framenumber);

Still having a problem, I added

GWalk = the name of the movie clip

_root.GWalk.goToAndStop(1);

Here is the FLA if you want to check it, its very small, trying to get some basics down before i really start to work on my project.

http://www.pked.net/test.fla

the problem is the capital T on goto.

should be like this:


_root.GWalk.gotoAndStop(1);

Cheers :hat:

that don’t work either, you try it out in my FLA?

:q:

hehe yah :stuck_out_tongue: I don’t know whats wrong with it

If in doubt, open up the movieclip with the AS in it, click on the frame with the Actions and open up the Actions panel. Make sure you’re in Normal Mode too. Now, you can use the little targetting icon on the panel to locate the path to the clip you want, and then add the .gotoAndPlay() (sorry about my earlier typo) afterwards.

Also, make sure that all your clips are named on the Stage!

I´ve checked all this stuff before, I gave the mc an instance name, made the proper target with the right action, but the movie won´t stop on frame 1. And I don´t know why.

Very weird…

weird…

I placed copies of the same mc in different layers, gave them unique instace name, and by AS told them in frame 65 to stop on frame 1 of theyr own timelines. All of them stoped except the one in the tween layer. Why is that?

Er… how about using gotoAndStop?

I used _root.target.gotoAndStop (1);

I can´t explain it for you. try to do that and you will see.

ok i downloaded your file and fixed it but the really wierd thing is i dont know how this happened but in frame 65 of the walking guy theres an action there that cant be erased i switched from normal to expert mode and it still would show the action in the layer but it wont show no actions at all thats weird. Anyways i erased frame 65 of the walking guy did a f6 on frame 65 and inserted a new layer with these action on frame 65

stop();
_root.walk.gotoAndStop(1);

Try it it should work but remember to delete frame 65 of the walkin guy otehrwise it wont work

Grim

Still can’t get it, damnit I must be stupid or something, could you e-mail me the one you got working properly at

[email protected] or upload it for me some place.

get it here www.expocaribbean.com/uwantmore/fixed.fla

Grim

_root.walk.gotoAndStop(1);

what is walk, the name of the movie is GWalk, where did you set the walk at?

i changed the instance of the mc gwalk to walk thats all
Just select the movie clip ant rename it

Grim

where do you change the instance name?

i click on the movie GWalk and press properties its not there

Change the name where its circled

Grim

I must still be a tard, cause i can’t find what you just showed me