# Loading Movie Clip problems

**URL:** <https://forum.kirupa.com/t/loading-movie-clip-problems/15178>\
**Category:** flash\
**Created:** [March 11, 2003, 3:35pm UTC](https://forum.kirupa.com/t/loading-movie-clip-problems/15178 "2003-03-11T15:35:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kelly\_G](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@Kelly\_G](https://forum.kirupa.com/u/Kelly_G)\
**Post date:** [March 11, 2003, 3:35pm UTC](https://forum.kirupa.com/t/loading-movie-clip-problems/15178/1 "2003-03-11T15:35:45Z")

</div>

Ok… I know that I must be missing something fairly fundamental but I can’t seem to wrap my brain around it.

Here is my concept idea:

I have a main timeline with a set of buttons and a movie clip.

When you hover over the various buttons, I am trying to get the movie clip to play and depending on the button hovered over, have the playhead in the movie clip go to a specific frame.

I have the movie clip placed on the main timeline with a stop action on the first frame so it won’t play right away.

I don’t know the proper syntax in actionscript to call the movie clip and direct the playhead to the correct frame.

I have tried the gotoAndPlay, and a couple of variations but I think my logic is flawed.

I would appreciate it if someone could give me direction (you don’t have to actually give me the code).

Thanks very much.

---

<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:** [March 11, 2003, 4:22pm UTC](https://forum.kirupa.com/t/loading-movie-clip-problems/15178/2 "2003-03-11T16:22:12Z")

</div>

Your logic wasn’t totally flawed…

In ActionScript with Flash you must specifiy which object you do idneed wish to gotoAndPlay();

mcInstanceName.gotoAndPlay();

That should help ya out a little bit 🙂

---

<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:** [March 11, 2003, 5:29pm UTC](https://forum.kirupa.com/t/loading-movie-clip-problems/15178/3 "2003-03-11T17:29:34Z")

</div>

Ok that makes sense and here is the script that I am using which is not getting me the results I am looking for.

Ok just in case my formatting is incorrect in terms of layers etc…

On a layer called “hover” I have placed the instance of the movieclip “names”. The instance is called “m1” (just for purposes of trying to get this to work)

On a layer above “hover” I have placed the button that uses this script.

* * *

on (rollOver) {  
m1.gotoAndPlay(5);  
}

* * *

Frame 5 of the movieclip is where I want the clip to start playing.

As it stands now… I get nothing when I hover over the script.

As a test, I went into the movieclip and removed all the stop actions and then previewed the published file… the movie clip played and repeated fine.
