[Flashcoders] Fitting text characters to an area

2006-05-08 Thread Flash Mel
This is similar to the thread about fitting boxes to an area. I've got this: MovieClip.prototype.FadeIn = function() { this._alpha = randomBetween(-200, 0); this.onEnterFrame = function() { if (this._alpha 100) { this._alpha += 10; } }; }; function

Re: [Flashcoders] Fitting text characters to an area

2006-05-08 Thread Danny Kodicek
Works fine if it's one line, but how to make this wrap in a give area? Is it possible to adapt the code given for the previous question of how to fit squares in an area? Sure, as long as the text is monospaced (it looks like yours is). My algorithm will work just fine (with a tiny adaptation to