2 Replies - 1227 Views - Last Post: 16 October 2009 - 02:32 PM

#1 Dilerious  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 2
  • View blog
  • Posts: 280
  • Joined: 30-December 05

Text Effect

Posted 13 February 2006 - 03:12 PM

Description: This text effect appears on the screen as though it was typed
var str:String = " Your Text here";
//Put "nn" for paragraphs

var sInt = setInterval(writeIt,1);
var count:Number = 0;
var s:Sound = new Sound();
s.attachSound("type");

function writeIt() {
     if(count == 0) {
          s.start(0,1000);
     }
     theText.text = str.substring(0,count);
     count += 5;
     if(count > str.length) {
          clearInterval(sInt);
          s.stop();
     }
}


Is This A Good Question/Topic? 0
  • +

Replies To: Text Effect

#2 shweta.honey25  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 15-September 08

Re: Text Effect

Posted 04 February 2009 - 12:47 AM

nothing is displaying
Was This Post Helpful? 0
  • +
  • -

#3 jeeppsycho223  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 16-September 09

Re: Text Effect

Posted 16 October 2009 - 02:32 PM

you have to make a dynamic text box and label it str. I cant get it to appear that it is being typed it only displays it
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1