PDA

View Full Version : targetting problem?



awarlock
June 2nd, 2003, 11:33 PM
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

lostinbeta
June 2nd, 2003, 11:36 PM
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...

on (release) {
clip123._visible = false

}

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

thoriphes
June 2nd, 2003, 11:36 PM
try this:
on (release) {
123._alpha = 0;
}

awarlock
June 2nd, 2003, 11:44 PM
ok i tried ur script.
and it still doesnt target the movieclip.
nothing happens at all.

lostinbeta
June 2nd, 2003, 11:45 PM
I just tested mine, works fine my way, doesn't work fine as "123" as reasons stated in last post.

awarlock
June 2nd, 2003, 11:46 PM
does it make a difference than my button movieclip is under a mask?

lostinbeta
June 2nd, 2003, 11:48 PM
I don't believe so.

kode
June 3rd, 2003, 12:58 AM
you can use numbers for an instance name... is not a good practice but you could use them. :P

this["123"]._alpha = 0;

lostinbeta
June 3rd, 2003, 01:12 AM
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.