hello everybody!
I’m going insane. Here is a simple example of something that’s causing me trouble:
The following code is in the first keyframe of the animation, the object to be animated is a circle. When you call both funtions, only one of them executes. The circle will only move in the y direction! if you comment out calling the second funtion, THEN if moves in the x direction. Why is this?
function one() {
this.onEnterFrame = function() {
circle._x += 10;
};
}
function two() {
this.onEnterFrame = function() {
circle._y += 10;
};
}
one();
two();
Obviously, this isn’t what I’m working on. This is just to show where my main problem is. PLEASE someone help me!