monolite
08-06-2005, 12:03 PM
Hey there
I've a little problem with some movement on a onRollOver action
I created a mc(should act as a button) with dynamic txt on it
When i move my mous over it, the txt should move from the left side of the mc to the right side.
I'm very new to AS but this is what i have.
dyntxt.html = true;
dyntxt.htmlText = "<font color=\"#ffffff\">bla</font>";
dyntxt._x = 20;
dyntxt._y = 0;
bgButton.onRollOver = function () {
if (dyntxt._x<170) {
dyntxt._x +=10;
}
};
This is what happens
When i move my mouse over the button dyntxt._x increases by 10 and then stops. When i move my mous over it again, it increases again by 10.
That until 170 is reached.
But what i want is, when i move my mouse over the button dyntxt._x should increase by 10 until 170 is reached.
I hope you get what i mean
Some help would be appreciated
Thanx
monolite
I've a little problem with some movement on a onRollOver action
I created a mc(should act as a button) with dynamic txt on it
When i move my mous over it, the txt should move from the left side of the mc to the right side.
I'm very new to AS but this is what i have.
dyntxt.html = true;
dyntxt.htmlText = "<font color=\"#ffffff\">bla</font>";
dyntxt._x = 20;
dyntxt._y = 0;
bgButton.onRollOver = function () {
if (dyntxt._x<170) {
dyntxt._x +=10;
}
};
This is what happens
When i move my mouse over the button dyntxt._x increases by 10 and then stops. When i move my mous over it again, it increases again by 10.
That until 170 is reached.
But what i want is, when i move my mouse over the button dyntxt._x should increase by 10 until 170 is reached.
I hope you get what i mean
Some help would be appreciated
Thanx
monolite