Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,007
    Thanks
    59
    Thanked 10 Times in 10 Posts

    Unhappy The old command line prompts that had a blinking square effect

    Do you rememeber the old command line prompts that had a blinking square where the typing cursor was. Well I want a flash effect where text is being typed real time on a flash .SWF with the prompt described above. Sort of like a misson control sci fci intro to a scene. Any thing out there I can use instead of coding this myself?


  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    I have an idea, but I can't find any code for it.

    I'm thinking that if you use a mono-space font, that you can measure the length of the string inputted. So make a listener for keystrokes and then recalculate the string length. Then multiply that by the number of pixels each character is to get the proper distance from the origin.

    You would want to make sure to embed a font with this, but I think that would be a good way to go about it.

  • #3
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,007
    Thanks
    59
    Thanked 10 Times in 10 Posts
    Cool, what if I wanted to have the flash type out preprogammed text one character every 200ms?


  • #4
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    http://www.actionscript.org/resource...ect/Page1.html
    Here is a tutorial on automatic type writing.

  • #5
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,007
    Thanks
    59
    Thanked 10 Times in 10 Posts
    super mate many thanks and love in Christ ;-)



  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •