it traces WTF when it is supposed 2, but it wont change the x vaule of thing_mc, i want it to move to the right(it does this) then i want to have it move back, why i want to do this, well i really don’t know, but it should work
var thing:MovieClip = _root.createEmptyMovieClip(“thing_mc”, 1);
var speed:Number = 5;
thing_mc.lineStyle(12);
thing_mc._x = 100;
thing_mc._y = 100;
thing_mc.lineTo(100, 0);
thing_mc.lineTo(100, 100);
thing_mc.lineTo(0, 100);
thing_mc.lineTo(0, 0);
bob = “left”
thing_mc.onEnterFrame = function() {
if (bob = “left”) {
thing_mc._x += speed;
}
if (thing_mc._x == 100) {
bob = “left”
}
if (thing_mc._x == 200) {
bob = “right”;
}
if (bob == “right”) {
trace(“WTF??”)
thing_mc._x -= speed;
}
};