Hi,
Its more than enough to use <br> to split the Text, don't use </br> (No such
command in HTML) . U can split the Text with "<br>"
var str_array = myString_str.split("<br>");
and proceed with that resulting array
Corban Baxter <[EMAIL PROTECTED]> wrote:
Hello boys its glad to have everyone back. I missed the list. Anyway enough
with the mushy stuff...
I am trying to figure out how to get this nifty text effect to work. Below is
the code:
[code]
MovieClip.prototype.FadeIn = function ()
{
this._alpha = randomBetween (-200, 0);
this.onEnterFrame = function ()
{
if (this._alpha < 100)
{
this._alpha += 10;
}
};
};
function randomBetween (a, b)
{
return Math.min (a, b) + random (Math.abs (a - b) + 1);
}
var textMessage = "blah
blah blah blah blah blah blah blah blah blah blah
blah balh";
var positioning = 60;
var letterSpacing = 30;
for (i = 0; i < textMessage.length; i++)
{
var mc = textToDuplicate.duplicateMovieClip ("letterDuplicate" + i, i);
mc._x = positioning;
//test code
mc.WhatLetter.html = true;
mc.WhatLetter.htmlText = textMessage.charAt (i);
//test code
//mc.WhatLetter.text = textMessage.charAt (i);
mc.FadeIn ();
positioning += letterSpacing;
}
[code]
all the code is doing is duplicating out one dynamic text box with each letter
in it and fading it randomly. How can I take this to the next level and get the
code to know it needs to skip a line when it reaches a
. Is there an entirely different approach to this? Thanks!
Corban Baxter | rich media designer | www.funimation.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders