# Loading movie clips on (release)

**URL:** https://forum.kirupa.com/t/loading-movie-clips-on-release/13494
**Category:** Uncategorized
**Created:** [February 13, 2003, 9:21pm UTC](https://forum.kirupa.com/t/loading-movie-clips-on-release/13494 "2003-02-13T21:21:22Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![ienjoypie](https://avatars.discourse-cdn.com/v4/letter/i/f9ae1b/32.png) [@ienjoypie](https://forum.kirupa.com/u/ienjoypie)
#### Post date: [February 13, 2003, 9:21pm UTC](https://forum.kirupa.com/t/loading-movie-clips-on-release/13494/1 "2003-02-13T21:21:22Z")

</div>

so yeah… i can’t seem to get this one to work, i searched the forums but couldn’t find anything so im jus gonna ask.

I just want a load a certain movie clip on the press of a button, i’ve tried a few experimental scripts on my own but can’t seem to get anything to work… can anyone help?

thx.

---

<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: [February 13, 2003, 9:35pm UTC](https://forum.kirupa.com/t/loading-movie-clips-on-release/13494/2 "2003-02-13T21:35:28Z")

</div>

```auto

on(press){
loadMovie("myMovie.swf",0);
}

```

hope this 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: [February 13, 2003, 10:41pm UTC](https://forum.kirupa.com/t/loading-movie-clips-on-release/13494/3 "2003-02-13T22:41:18Z")

</div>

hmm… tried that and i got this error msg:

Error opening URL “file:///C|/WINDOWS/TEMP/test.swf”

i just made a little test .fla… made a button with this action on it

on (release) {  
loadMovie(“test.swf”,0);  
}

i just made some static text and put it in a movie clip with instance name “test”, and faded it in.

if i dont want the movie clip to show up at all before i hit the button would i just use a \_visible = false / \_visible = true type of thing or…??

---

<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: [February 13, 2003, 10:58pm UTC](https://forum.kirupa.com/t/loading-movie-clips-on-release/13494/4 "2003-02-13T22:58:44Z")

</div>

You’re confusing movie clip and movie.

loadMovie will load a whole movie, that is to say a compiled fla. Now if you want to work with movie clips, \_visible is a good idea.

pom :cowboy:

---

<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: [February 14, 2003, 2:02am UTC](https://forum.kirupa.com/t/loading-movie-clips-on-release/13494/5 "2003-02-14T02:02:08Z")

</div>

yeh ok…i thought that .swf was a little fishy, just didn’t seem right.

there’s gotta be a way to just play a certain mc on the press of a button =/… anyone??

---

<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: [February 14, 2003, 5:05am UTC](https://forum.kirupa.com/t/loading-movie-clips-on-release/13494/6 "2003-02-14T05:05:32Z")

</div>

put a stop action in the first frame of the mc you want to play (make the frame blank so nothing shows)

```auto

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

```

you can replace play with gotoAndPlay if you’d like … that way you can specify a frame number

i hope this 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: [February 14, 2003, 5:18am UTC](https://forum.kirupa.com/t/loading-movie-clips-on-release/13494/7 "2003-02-14T05:18:17Z")

</div>

ahh thanx dood…i knew there had to be an easy way to do this that i was just overlooking ;p

---

<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: [February 14, 2003, 7:13am UTC](https://forum.kirupa.com/t/loading-movie-clips-on-release/13494/8 "2003-02-14T07:13:34Z")

</div>

anytime =)
