# Targetting problem?

**URL:** <https://forum.kirupa.com/t/targetting-problem/22348>\
**Category:** Uncategorized\
**Created:** [June 3, 2003, 3:33am UTC](https://forum.kirupa.com/t/targetting-problem/22348 "2003-06-03T03:33:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![awarlock](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@awarlock](https://forum.kirupa.com/u/awarlock)\
**Post date:** [June 3, 2003, 3:33am UTC](https://forum.kirupa.com/t/targetting-problem/22348/1 "2003-06-03T03:33:04Z")

</div>

on my timeline i have a movieclip instance name “123”  
Same time line, same frame, different layer.another movieclip with this code:

on(release) {  
setproperty(“level.123”,\_alpha,“0”);  
}

so u push the button, then it sets 123 to invisible.  
but its not working?

i also tried

on(release) {  
setProperty("/movieclip", \_alpha, “0”);  
}

nothing works dammit  
help me

---

<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:** [June 3, 2003, 3:36am UTC](https://forum.kirupa.com/t/targetting-problem/22348/2 "2003-06-03T03:36:14Z")

</div>

You can’t use just numbers for an instance name.

Also you don’t need to use setproperty or set the alpha to 0 to make it disappear.

A more efficient way of doing this would be…

[AS]on (release) {  
clip123.\_visible = false

}[/AS]

it sets the mc with the instance name clip123 to be invisible (hence \_visible = false, set it to true to make it visible again).

---

<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:** [June 3, 2003, 3:36am UTC](https://forum.kirupa.com/t/targetting-problem/22348/3 "2003-06-03T03:36:40Z")

</div>

try this:

```auto
on (release) {
123._alpha = 0;
}

```

---

<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:** [June 3, 2003, 3:44am UTC](https://forum.kirupa.com/t/targetting-problem/22348/4 "2003-06-03T03:44:08Z")

</div>

ok i tried ur script.  
and it still doesnt target the movieclip.  
nothing happens at all.

---

<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:** [June 3, 2003, 3:45am UTC](https://forum.kirupa.com/t/targetting-problem/22348/5 "2003-06-03T03:45:03Z")

</div>

I just tested mine, works fine my way, doesn’t work fine as “123” as reasons stated in last post.

---

<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:** [June 3, 2003, 3:46am UTC](https://forum.kirupa.com/t/targetting-problem/22348/6 "2003-06-03T03:46:07Z")

</div>

does it make a difference than my button movieclip is under a mask?

---

<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:** [June 3, 2003, 3:48am UTC](https://forum.kirupa.com/t/targetting-problem/22348/7 "2003-06-03T03:48:16Z")

</div>

I don’t believe so.

---

<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:** [June 3, 2003, 4:58am UTC](https://forum.kirupa.com/t/targetting-problem/22348/8 "2003-06-03T04:58:05Z")

</div>

you can use numbers for an instance name… is not a good practice but you could use them. 😛

```auto
this["123"]._alpha = 0;

```

---

<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:** [June 3, 2003, 5:12am UTC](https://forum.kirupa.com/t/targetting-problem/22348/9 "2003-06-03T05:12:52Z")

</div>

Yeah, I know that kax, but as you stated, it’s not good practice, so I wasn’t even going to get into… ya know… one of those let is slip through the cracks and they might not notice deals 😉

I think it would be easier to change the instance name then type this[“123”] all the time as well.
