Question : as3 to as2 conversion

Hi,
Can anyone convert the following as3 to as2?
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
package
{
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.text.TextField;
	
	import net.dmclaren.text.MultiTextFieldWrapper;
	
	public class MultiColumnTextDocument extends Sprite
	{
		public function MultiColumnTextDocument()
		{
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			
			var tfw:MultiTextFieldWrapper = new MultiTextFieldWrapper([tf0, tf1, tf2, tf3]);
			tfw.text = "";
		}
	}
}
Open in New Window Select All

Answer : as3 to as2 conversion

unfortunately it ain't a quick and easy conversion as AS3 introduced the MulitColumnTextField class - which does the work for you, trying to replicate it in AS2 is starting from scratch. don't even know if its doable.
you may well need to hack it in terms of estimating the number of characters that can fit into each of your textfields and splitting your text accordingly.
Random Solutions  
 
programming4us programming4us