Can someone provide me with some guidance for the problem below? It doesn’t generate any error but it doesn’t work. It’s just a Flash menu with two buttons. One that moves the menu, and the other puts it back to the original coordinates. All of the movieclips and buttons are in the first frame.
function MoveTo(clip, fadetype, xTo, yTo, speed) {
trigger_show.onPress = function() {
MoveTo(line1, “in”, 50, 10, 0.3);
MoveTo(line2, “in”, 100, 20, 0.3);
MoveTo(line3, “in”, 150, 30, 0.3);
MoveTo(line4, “in”, 200, 40, 0.3);
};
trigger_hide.onPress = function() {
MoveTo(line1, “out”, 10, 10, 0.3);
MoveTo(line2, “out”, 10, 20, 0.3);
MoveTo(line3, “out”, 10, 30, 0.3);
MoveTo(line4, “out”, 10, 40, 0.3);
};
clip.onEnterFrame = function() {
this._x += (xTo - this._x) * speed;
this._y += (yTo - this._y) * speed;
if (fadeType == “in” && this._alpha < 100) {
this._alpha += 5;
} else if (fadeType == “out” && this._alpha > 0) {
this._alpha -= 5;
}
};
}