# Play?

**URL:** https://forum.kirupa.com/t/play/23708
**Category:** flash
**Created:** [June 21, 2003, 7:40am UTC](https://forum.kirupa.com/t/play/23708 "2003-06-21T07:40:01Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![luster](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@luster](https://forum.kirupa.com/u/luster)
#### Post date: [June 21, 2003, 7:40am UTC](https://forum.kirupa.com/t/play/23708/1 "2003-06-21T07:40:01Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 21, 2003, 7:54am UTC](https://forum.kirupa.com/t/play/23708/2 "2003-06-21T07:54:55Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 21, 2003, 7:57am UTC](https://forum.kirupa.com/t/play/23708/3 "2003-06-21T07:57:37Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 21, 2003, 7:58am UTC](https://forum.kirupa.com/t/play/23708/4 "2003-06-21T07:58:02Z")

</div>

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

but your code should be something along these lines:

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

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 21, 2003, 8:09am UTC](https://forum.kirupa.com/t/play/23708/5 "2003-06-21T08:09:58Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 21, 2003, 3:55pm UTC](https://forum.kirupa.com/t/play/23708/6 "2003-06-21T15:55:00Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 21, 2003, 3:56pm UTC](https://forum.kirupa.com/t/play/23708/7 "2003-06-21T15:56:38Z")

</div>

Here it is

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 21, 2003, 5:07pm UTC](https://forum.kirupa.com/t/play/23708/8 "2003-06-21T17:07:45Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 21, 2003, 6:08pm UTC](https://forum.kirupa.com/t/play/23708/9 "2003-06-21T18:08:45Z")

</div>

… :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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 22, 2003, 1:28pm UTC](https://forum.kirupa.com/t/play/23708/10 "2003-06-22T13:28:25Z")

</div>

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”

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 22, 2003, 7:38pm UTC](https://forum.kirupa.com/t/play/23708/11 "2003-06-22T19:38:46Z")

</div>

> _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.**

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 23, 2003, 5:49pm UTC](https://forum.kirupa.com/t/play/23708/12 "2003-06-23T17:49:58Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 23, 2003, 5:53pm UTC](https://forum.kirupa.com/t/play/23708/13 "2003-06-23T17:53:22Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 23, 2003, 6:01pm UTC](https://forum.kirupa.com/t/play/23708/14 "2003-06-23T18:01:23Z")

</div>

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 ?
