# Why i cant modify my created movieclip?

**URL:** https://forum.kirupa.com/t/why-i-cant-modify-my-created-movieclip/261342
**Category:** Uncategorized
**Created:** [May 26, 2008, 6:22pm UTC](https://forum.kirupa.com/t/why-i-cant-modify-my-created-movieclip/261342 "2008-05-26T18:22:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Leo75](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@Leo75](https://forum.kirupa.com/u/Leo75)
#### Post date: [May 26, 2008, 6:22pm UTC](https://forum.kirupa.com/t/why-i-cant-modify-my-created-movieclip/261342/1 "2008-05-26T18:22:57Z")

</div>

Hi there.  
I created some movie clips using duplicate movie clip. But when i try to modify them, by using their name stored in a variable, i just cant (please reffer to “HERE”).  
The process of creating the movie clips seem to be ok… But not sure if the way that i am calling the movieclip’s names is ok.  
Why is that?  
Thanks.  
Cheers.  
Leo.

```auto

po_x = 100;
po_y = 100;
t = 1;
i=0;
while (i < 4)
{
 duplicateMovieClip(mc_l_3.mc_l_2.mc_l_1.area_test, "area_test_" + (i), mc_l_3.mc_l_2.mc_l_1.getNextHighestDepth());
 mc_l_3.mc_l_2.mc_l_1["area_test_"+i].onRollOver = function() 
 {
  temp = this;
  trace(temp);
  un = temp.lastIndexOf("_");
  l = temp.length();
  temp = temp.substring(un+1, l);
  //trace(temp);
 };
 
 i++;
}
for (c=0; c<30; c++) 
{
 mc_l_3.mc_l_2.mc_l_1["area_test_"+(c+1)]._x = po_x;
 mc_l_3.mc_l_2.mc_l_1["area_test_"+(c+1)]._y = po_y;
 po_y = po_y+102;
 if (t == 19) 
 {
  t = 0;
  po_x = po_x+120;
  po_y = -1109.1;
 }
 t++;
}
m_var= "mc_l_3.mc_l_2.mc_l_1.area_test_3"; //HERE
_root[m_var]._xscale = 1500; //HERE
_root[m_var]._yscale = 1500; //HERE

```

---

<div class="post-metadata">

### Author: ![sri\_dawg](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sri\_dawg](https://forum.kirupa.com/u/sri_dawg)
#### Post date: [May 26, 2008, 6:32pm UTC](https://forum.kirupa.com/t/why-i-cant-modify-my-created-movieclip/261342/2 "2008-05-26T18:32:30Z")

</div>

just use setProperty function:  
example:

setProperty(“main\_carousel/”+indexArray\*,\_width,14);

---

<div class="post-metadata">

### Author: ![Leo75](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@Leo75](https://forum.kirupa.com/u/Leo75)
#### Post date: [May 26, 2008, 6:51pm UTC](https://forum.kirupa.com/t/why-i-cant-modify-my-created-movieclip/261342/3 "2008-05-26T18:51:36Z")

</div>

Thanks for ur reply…it worked for changing the size, but also what if i just want the movie clip to do a “gotoandPlay” ?

---

<div class="post-metadata">

### Author: ![sri\_dawg](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@sri\_dawg](https://forum.kirupa.com/u/sri_dawg)
#### Post date: [May 26, 2008, 6:57pm UTC](https://forum.kirupa.com/t/why-i-cant-modify-my-created-movieclip/261342/4 "2008-05-26T18:57:28Z")

</div>

telltarget works well too…although i am not really sure about your variable value: “mc\_l\_3.mc\_l\_2.mc\_l\_1.area\_test\_3” are these parent and child movie clip references?

---

<div class="post-metadata">

### Author: ![Leo75](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@Leo75](https://forum.kirupa.com/u/Leo75)
#### Post date: [May 26, 2008, 7:18pm UTC](https://forum.kirupa.com/t/why-i-cant-modify-my-created-movieclip/261342/5 "2008-05-26T19:18:19Z")

</div>

yeap…  
all references…  
"mc\_l\_3.mc\_l\_2.mc\_l\_1.area\_test\_3"  
mc\_l\_3 = first movie clip name  
mc\_l\_2 = second movie clip name  
m\_l\_1 = third movi clip name  
area\_test\_3 = movie clip name

Just checked the Telltarget, but didnt understand and is depreciated…

---

<div class="post-metadata">

### Author: ![Leo75](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@Leo75](https://forum.kirupa.com/u/Leo75)
#### Post date: [May 26, 2008, 7:24pm UTC](https://forum.kirupa.com/t/why-i-cant-modify-my-created-movieclip/261342/6 "2008-05-26T19:24:39Z")

</div>

it WORKED!  
Thanks a lot

correction: \*\*Deprecated \*\*

**And since it is Deprecated , how could we do the same thing, without using the Deprecated function?**
