# Question avout Clip

**URL:** <https://forum.kirupa.com/t/question-avout-clip/15851>\
**Category:** flash\
**Created:** [March 18, 2003, 7:42pm UTC](https://forum.kirupa.com/t/question-avout-clip/15851 "2003-03-18T19:42:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dj\_Dove](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dj\_Dove](https://forum.kirupa.com/u/Dj_Dove)\
**Post date:** [March 18, 2003, 7:42pm UTC](https://forum.kirupa.com/t/question-avout-clip/15851/1 "2003-03-18T19:42:00Z")

</div>

I like to know if what I want is possible :

I have 3 Movieclips called “Clip1” , “Clip2” and “Clip3”

I have a empty scene, and a variable call [Whatload] , the possible value of this variable is “Clip1” or “Clip2” or “Clip3”

I want to load the correct movieclip in my scene by my variable [Whatload] and put it to the location (X=10, Y=10).

How I can do that ?

Thanks in advance

Alex

---

<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 18, 2003, 11:14pm UTC](https://forum.kirupa.com/t/question-avout-clip/15851/2 "2003-03-18T23:14:42Z")

</div>

you have to make sure your clips have a linkage ID associated with them in the library. To do that, you can either right click on the library symbol or use the library menu with the symbol selected and choose linkage. Then, export for actionscript and give each the appropriate name, either “Clip1” , “Clip2” or “Clip3”. Now, when you want to add whatever one to the scene you use

\_root.attachMovie(Whatload, Whatload, 1, {\_x:10, \_y:10});

where Whatload is either “Clip1” or “Clip2” or “Clip3”. The first Whatload represents which linkage id to grab from the library and the second gives the newly attached clip the instance name of whatevers in Whatload. 1 represents the depth and the \_x \_y are the position assignments.

---

<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 19, 2003, 4:02pm UTC](https://forum.kirupa.com/t/question-avout-clip/15851/3 "2003-03-19T16:02:28Z")

</div>

Thanks you, It works very fine.

Alex
