2 Replies - 3067 Views - Last Post: 31 July 2013 - 10:10 AM

#1 gioralex  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 31-July 13

Add second text item

Posted 31 July 2013 - 08:32 AM

Hello everyone,

i found that text effect flash and the flash project also. But i can t find how to add a second word in actionscript.
Frame1: 
text = "WRITE YOUR TEXT HERE";
i = 1;
max = length(text);
kerning = "20";
size = "20";
setProperty ("char", _visible, "0");

Frame3:
duplicateMovieClip("char", "char" add i, i);
set("/char" add i add "/letter:char", substring(text, i, 1));
setProperty("/char" add i, _x, 100+Number(i*kerning));
setProperty("/char" add i, _xscale, 10*size);
setProperty("/char" add i, _yscale, 10*size);
i = Number(i)+1;

Frame4:
if (Number(i)>Number(max))
{
stop();
}
else
{
gotoAndPlay(2);
}


Here s th flash project: My link
Anyone any ideas?
Thanks in advance.

Is This A Good Question/Topic? 0
  • +

Replies To: Add second text item

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9574
  • View blog
  • Posts: 36,268
  • Joined: 12-June 08

Re: Add second text item

Posted 31 July 2013 - 09:13 AM

What have you tried?>
Was This Post Helpful? 0
  • +
  • -

#3 gioralex  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 31-July 13

Re: Add second text item

Posted 31 July 2013 - 10:10 AM

I ve tried to add a new variable j which adds a new "word" in the final file but it appears only one letter "w" or it appears only the new word i added.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1