# Need ,ore help on this code

**URL:** <https://forum.kirupa.com/t/need-ore-help-on-this-code/11930>\
**Category:** Uncategorized\
**Created:** [January 24, 2003, 1:52am UTC](https://forum.kirupa.com/t/need-ore-help-on-this-code/11930 "2003-01-24T01:52:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksmith](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@ksmith](https://forum.kirupa.com/u/ksmith)\
**Post date:** [January 24, 2003, 1:52am UTC](https://forum.kirupa.com/t/need-ore-help-on-this-code/11930/1 "2003-01-24T01:52:44Z")

</div>

Hello:

For example:

You have a button and a movieclip.

When I press the button I want my movieclip to play.

My Question is, when I press the button how do I get the movieclip on the stage to play? Note: I have already put the following action script in the button.

on (press) {  
SYNTAXA.play()  
}

What do I do now to get the moveclip to play on the stage and at a location I desire?

---

<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:** [January 24, 2003, 1:21pm UTC](https://forum.kirupa.com/t/need-ore-help-on-this-code/11930/2 "2003-01-24T13:21:20Z")

</div>

How u doing,

First u re movie should be insert on a keyframe, and u have to use this code if u wanna call a movie.

on (press){  
tellTarget(\_root.your movie’s target)  
{  
gotoAndPlay(u re frame number)  
}  
}

And don t forget to give u re movie a target name on u re properties. Hope It helps.

---

<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:** [January 24, 2003, 1:31pm UTC](https://forum.kirupa.com/t/need-ore-help-on-this-code/11930/3 "2003-01-24T13:31:41Z")

</div>

Hi there!

Kevin, can you tell me what is the instance name of your movieclip, and were it is located form the root of your movie?

Even better can you post your fla here?

in the meantime you can try this:

[SIZE=1]code for the button:[/SIZE]

```auto

on (press){
	_root.movieclipInstanceName.play();
}

```

that, if your movie clip is in the main stage, and replace the **movieclipInstanceName** part with the real instance name of your movie clip.

Cheers 🙂
