flash help
- Started
- Last post
- 10 Responses
- cut&taste
Hello,
does anyone know how to make some text (about 300 characters) to move frome left to right with actionscript.I thought it would be something pretty easy to find a tutorial for but gogle wasn't helpful
btw, is there a way to set the text's speed as well?
thanks in advance
- stewart0
use google instead of gogle
- vwsung18t0
don't knock gogle
- mitsu0
move left to right? by itself, with a mouse event, other event? be more specific.
- stewart0
sorry.
- vespa0
did you just mean:
onEnterFrame = function() {
text_mc._x = text_mc._x + 5;
}increase the number you add to it to make go faster.
- MX_OnD0
sorry but that really isn't a question for here...
- MX_OnD0
kim-leigh
speaking of flash help did you get my post yesterday about the remoting?let me know how it went
- unfittoprint0
textBox.autoSize = true;
myText = "Google is your best friend";
//__________inner Function
addText = function (string) {
i = (i == undefined) ? 0 : i;
textBox.text += string[i];
++i;
if (i == string.length-1) {
clearInterval(interval);
}
};
//_________________builder
textBuilder = function (string, velocity) {
myArray = string.split("");
clearInterval(interval);
interval = setInterval(addText, velocity, myArray);
};
//________________start
textBuilder(myText, 30);
stop();remember: the lower the velocity number, the faster it goes...
- cut&taste0
Thanks mitsu,
I need it to be moving by itself. It's a pretty cheesy thing. Text that's coming from outside the left side of the stage and disappearing from the right side of the stage.It's just that it's quite alot of text and in order to have the right speed to be legible it needs about 2000 frame with tweening
- cut&taste0
oops, I just read the rest of the replies...
Thanks everybody!!!!