nicmar
03-26-2003, 01:11 PM
I'm trying to make 3 lines of text, and give them "onEnterFrame" functions.. this is just a test.. it will be more advanced when I get it to work..
The problem with the following code is that it creates 3 textfields as it should, but only the third one moves.. What am I doing wrong?
BTW, the style is defined earlier, so that's not a problem :)
for (x=0;x<3;x++) {
createTextField("land"+x,3200+x,24,22+x*23,200,32);
with (eval("land"+x)) {
embedFonts = true;
setNewTextFormat(style_lacuna);
text = "test"+x;
onEnterFrame = function() {
_x += 10;
}
}
}
The problem with the following code is that it creates 3 textfields as it should, but only the third one moves.. What am I doing wrong?
BTW, the style is defined earlier, so that's not a problem :)
for (x=0;x<3;x++) {
createTextField("land"+x,3200+x,24,22+x*23,200,32);
with (eval("land"+x)) {
embedFonts = true;
setNewTextFormat(style_lacuna);
text = "test"+x;
onEnterFrame = function() {
_x += 10;
}
}
}