# Using buttons to control movies

**URL:** <https://forum.kirupa.com/t/using-buttons-to-control-movies/186796>\
**Category:** flash\
**Created:** [April 24, 2006, 5:58pm UTC](https://forum.kirupa.com/t/using-buttons-to-control-movies/186796 "2006-04-24T17:58:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chargrims](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@chargrims](https://forum.kirupa.com/u/chargrims)\
**Post date:** [April 24, 2006, 5:58pm UTC](https://forum.kirupa.com/t/using-buttons-to-control-movies/186796/1 "2006-04-24T17:58:28Z")

</div>

Hi,

This is the site I am working on [http://sonisis.com/ss2](http://sonisis.com/ss2)

I have the menu on the outside top and right, this loads in to a movie clip called ‘contents’, the file home.swf.

The snow that appears is a movieclip _within_ home.swf with an instance name of ‘snowfuzz’, what I want for when you click the **film** button on the menu (which is also a movie clip), is for snowfuzz to play to frame 6.

The code I have within the film button actions is as follows;

```auto
 
this.onRelease = function(){ 
_root.contents.snowfuzz.gotoAndPlay(6);

```

But, I’m getting nothing. Can anyone point me in the right direction?

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [April 24, 2006, 6:05pm UTC](https://forum.kirupa.com/t/using-buttons-to-control-movies/186796/2 "2006-04-24T18:05:56Z")

</div>

Hmmm, that seems like it should work. Did you triple check all spellings of instance names? Flash is case sensitive too. 🙂

Other than that, are you sure that home.swf has \*completely \*loaded before the film button can be hit?

---

<div class="post-metadata">

**Author:** ![chargrims](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@chargrims](https://forum.kirupa.com/u/chargrims)\
**Post date:** [April 24, 2006, 6:45pm UTC](https://forum.kirupa.com/t/using-buttons-to-control-movies/186796/3 "2006-04-24T18:45:24Z")

</div>

Well if I’m working offline, the command should work regardless as the file’s already loaded locally, yeah?

Are there any really obvious things I may be overlooking? I’m a total newbie to Flash, so perhaps there’s something people wouldn’t even think to suggest?

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [April 24, 2006, 6:46pm UTC](https://forum.kirupa.com/t/using-buttons-to-control-movies/186796/4 "2006-04-24T18:46:30Z")

</div>

post your main fla and the external swf

_edit_ it could be where you have the code too. Is that on the button itself? or in it’s timeline? Try switching it to the main timeline and including the right path, e.g.

```auto
_root.film.onRelease = function(){ 
_root.contents.snowfuzz.gotoAndPlay(6);}

```
