Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOS command scroll effect

Status
Not open for further replies.

bhaydon

Technical User
Nov 5, 2002
82
US
I have looked everywhere but I cannot find anything similar to what I am looking for. I am making a small computer in the back of a movie look like commands are scrolling on the screen. I would like it to look similar to (insert non GUI platform here). It does not have to be detailed or legible, just look like it is doing something. Thanks for who can help!
 
at a guess you are looking for something like this

make the screen of the computer a dynamic text field

add to timeline

dosCommands = [">some command",">some other command",">yet another command"];

i = 0;

addText = setInterval(showText,250);

function showText(){
mytext.text +=doscommands + newline;
i++;
if(i==2)i=0;
}

just dont forget to clear the interval at some point


_______________________________________
You know you're old if you can remember when bacon, eggs and sunshine were good for you
 
And also don't forget to wrap such code when posting it here on TT, with "code" tags. Otherwise you might end up with an italicized post, and missing or wrong code!

Regards,

cubalibre2.gif

Bacon, eggs and sunshine are still good for me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top