Play?

I inserted some code that if you press ENTER, it plays the frame “vuur” . This is the second frame of a movie clip timeline, and the code has been added to the first frame of that timeline.
Now, instead of playing “vuur”, it plays the second frame of my main timeline. what’s wrong?

Please help

You are probably refering to the root timeline… check this tutorial
http://www.kirupa.com/developer/actionscript/tricks/relativeaddressing.asp

i don’t know what that has to do with my movieclip timeline. Can you explain please?

i can’t tell you what’s wrong without seeing your code and/or .fla… :stuck_out_tongue:

but your code should be something along these lines:

myMovieClip.onKeyDown = function() {
	if (Key.isDown(13)) this.gotoAndPlay("vuur");
};
Key.addListener(myMovieClip);

O yea, definetely, we cant be sure until we see the code.
:beam:

here’s my .fla . You won’t notice that code in it it , since it didn’t work

Here it is

Can you post the code and the stacking order of you rmovieclips ? (movie clip 1 in movie clip 2, movie clip 2 on the main timeline, … ) ? I haven’t got Flash here but I might be able to help with seeing the code.

… :sigh:

you must disable the keyboard shortcuts [size=1]control > disable keyboard shortcuts[/size] since the key ENTER is the shortcut to play the movie.

i don’t get it. It works exactly the same. I just need to get “projectiel” flying , without going to frame 2 of the main timeline. It may only go to frame 2 of the main timeline if “projectiel” hits “boot”

Originally posted by kax
you must disable the keyboard shortcuts [size=1]control > disable keyboard shortcuts[/size] since the key ENTER is the shortcut to play the movie.

I don’t have that in control menu!
I only have:

Play
Rewind
Go to end
Step forward
Step backward
Test movie
Debug movie
Test scene
Loop playback
play all scenes
Enable simple frame actions
Enable simple buttons
Mute sounds
Enable live preview

disable them while you’re on test movie mode (ctrl+enter), then you’ll have that option in the control menu…

Thanks! I was looking and I didn’t find it!
If you view the .swf on an other PC, it 'll work ( I supose)
But if you view the .fla on an other PC, wich hasn’t disabled that, will it work ?