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 <br>blah blah blah blah blah blah blah blah blah blah
<br /> 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 <br>. 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