PDA

View Full Version : Typing Effect Animation Problem



analeda
May 9th, 2002, 03:55 PM
What if my 'text' variable includes a '/n' (enter)? How will it go to the next line?

Need help with this, please...

I am not Jubba
May 9th, 2002, 05:11 PM
I'm working on it. Give me a little while. Its more complicated than I thought.

I am not Jubba
May 9th, 2002, 05:32 PM
I hope you are talking about my tutorial. If you aren't then I don't know what the hell you are talking about and this will definately not work! lol ok here goes

Put this in the middle frame, where the whole duplicate movieclip code is...

nRSPACE = text.substr(ii,1)
nRSPACE2 = text.substr(ii+1,1)
if(nRSPACE == " " && nRSPACE2 == " "){
&nbsp &nbsp &nbsp &nbsp nLNumber = nLNumber + 1
&nbsp &nbsp &nbsp &nbsp nChars = -1
}

then whereever you want a return just put two spaces in a row. You can't put any text where you want the space because the dynamic text will not turn invisible. Let me know if this is what you want.

analeda
May 10th, 2002, 11:53 AM
It worked. But I changed the 'nChars' inside the 'if' statement to '-2'

nRSPACE = text.substr(ii,1)
nRSPACE2 = text.substr(ii+1,1)
if(nRSPACE == " " && nRSPACE2 == " "){
nLNumber = nLNumber + 1
nChars = -2
}

Thanks.

Another problem...is there anyway I could add a 'bullet' inside the text?

I am not Jubba
May 10th, 2002, 12:19 PM
The only way I could think of doing that is just drawing the the bullet and placing it in the movie clip that has the Tweening animation at say frame 25, after the whole animation. then in the first frame of that MovieClip place the code

if(mcLetter.text eq "%"){
gotoAndPlay(25)
}else {
play()
}

then where ever you want a bullet just put a %

I hope you understnad because I cna't really explain any better....

mcLetter is the name of the movieclip that moves around...