Hello all,
I have one mc moving with this code:
class strandT extends MovieClip {
var dx: Number;
var dy: Number;
function strandT(){
_x = 1050;
_y = 0;
}
function onEnterFrame(){
move();
if(_x < 0){
removeMovieClip(this);
}
}
function move(){
_x += -.25;
}
When mc "A" hits the above mc, I want it to follow it across the screen.
Here's what I have for that:
function connectT1(){
if (this.hitTest(_root["strandT1"])){
_root[this]._x = _root["strandT1"]._x;
_root[this]._y = _root["strandT1"]._y;
}
}
When they touch, everything on the screen just disappears!!
Any reason this code isn't working?
Thanks in advance!!