# Easy one about movie clips

**URL:** <https://forum.kirupa.com/t/easy-one-about-movie-clips/57253>\
**Category:** Uncategorized\
**Created:** [July 11, 2004, 8:51pm UTC](https://forum.kirupa.com/t/easy-one-about-movie-clips/57253 "2004-07-11T20:51:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jedinitex](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jedinitex](https://forum.kirupa.com/u/jedinitex)\
**Post date:** [July 11, 2004, 8:51pm UTC](https://forum.kirupa.com/t/easy-one-about-movie-clips/57253/1 "2004-07-11T20:51:23Z")

</div>

How do I make it so that when I click a button, a movie clip from my library (it’s a window with text in it) comes up at a set x,y coordinate? i’ve tried different functions but i think i’m way off. Thanks!

---

<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:** [July 11, 2004, 9:09pm UTC](https://forum.kirupa.com/t/easy-one-about-movie-clips/57253/2 "2004-07-11T21:09:30Z")

</div>

Why don’t you have the mc on the stage, and put its keyframe in frame 2 of the mc (so that it is invisible in frame 1). Then you can have the button do something like:

on (release) {  
tellTarget("/mcname")  
gotoAndPlay(2)  
}

---

<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:** [July 11, 2004, 9:23pm UTC](https://forum.kirupa.com/t/easy-one-about-movie-clips/57253/3 "2004-07-11T21:23:54Z")

</div>

when you click on other buttons, other windows come up. they could have any combination of windows open at different times. so putting them in frames wouldn’t really 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:** [July 11, 2004, 10:49pm UTC](https://forum.kirupa.com/t/easy-one-about-movie-clips/57253/4 "2004-07-11T22:49:25Z")

</div>

You can achieve exactly what you want.

First, in the library, right-click the MC and go to linkage. Check **Export for Actionscript** and make sure **Export in first frame** is checked also. Give it the identifier name of let’s say **textMC**.

Now on the button, have this code:

```auto
on (release) {
    attachMovie("textMC", "textMC2", 1);
    textMC2._x = 100;
    textMC2._y = 100;
}

```

_attachMovie_ puts in a MC on the canvas. “textMC” is the identifier we gave it. “textMC2” is the new name of it. 1 is the depth so it comes on top of other objects. The rest is self-explanatory :).

Hope it works,  
Sharif.

---

<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:** [July 12, 2004, 6:42am UTC](https://forum.kirupa.com/t/easy-one-about-movie-clips/57253/5 "2004-07-12T06:42:21Z")

</div>

Thanks so much! it works. one more question: once that movie clip has loaded, how do i make another movie clip load within it?

---

<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:** [July 12, 2004, 6:43am UTC](https://forum.kirupa.com/t/easy-one-about-movie-clips/57253/6 "2004-07-12T06:43:09Z")

</div>

nevermind, answered my own question, thanks Reefster!

---

<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:** [July 12, 2004, 3:03pm UTC](https://forum.kirupa.com/t/easy-one-about-movie-clips/57253/7 "2004-07-12T15:03:01Z")

</div>

No problem :).
