9 Replies Latest reply on Jan 2, 2013 1:19 PM by Ned Murphy

    Need help creating a cursor effect.

    Clockwise Gear

      I'm working on a little project that's like a text-based adventure, but played on a tumblr, so the readers submit their siggestions for actions.

      I'm looking to create animations for each post, so that it looks like the reader is typing in the text on the "game."

      I have the text-generation effect down using this code:


      var myString:String = "text data goes here.";

      var myArray:Array = myString.split("");

      addEventListener(Event.ENTER_FRAME, frameLooper);

      function frameLooper(event:Event):void


                if(myArray.length > 0)






                          removeEventListener(Event.ENTER_FRAME, frameLooper);





      //code sporked from Adam Khoury's Flash Typing Text Effect Tutorial video


      So that runs okay, but after that is done, I want there to be a final > prompt followed by a flashing cursor,as if asking for input.

      If anyone has a suggestion, that would be much appreciated.

      Thanks in advance!