Attachmovie targetpath

I’m attaching [phil+“a”] to [“bob”+i] and I can’t seem to be able to alter phil’s properties. Tracing I get undefined.

_root[“bob”+_root.i].attachMovie(_root.train, _root.phil+“a”, _root.i, {_x:_root.hold._x, _y:_root.mover});

_root.phil._alpha =0;

trace([phil+“a”]._alpha);

i take it that i is an integer, bob1, bob2 etc… phila, philb, phil c, etc?
you want phil attached to bob, phil is in the library, train is the new name? i is an integer.
you are making a new clip named train

_root.“bob”+i.attachMovie(phil+“a”,_root.train,i[,_x:_root.hold._x,y:_root.mover._y]);

i am not sure if you can parce out the coordinates from two different instances, but if it works then it’s kewl.

my mc is phila and i’m trying to alter its alpha

no i think that you are going to have to go through bob to get to phil.


_root["bob"+_root.i].attachMovie(_root.train, _root.phil+"a", _root.i, {_x:_root.hold._x, _y:_root.mover});

it looks like you are attaching it through bob.

so it’ll be something like, _root[“bob”+_root.i].[_root.phil+“a”]._alpha