May 24, 2011   3 notes

Text Effect Component in Flash AS3

I did this component in Flash AS3 when we were having a hax evening a few days ago. 

Use example:

var stf:ScreenTextField = new ScreenTextField();
			
stf.x = 100;
stf.y = 100;
			
stf.textArray = 
[
	[
		"Far away in the galaxy...",
		"A long time ago nothing existed but far away in the galaxy something existed.",
		"The galactic empire sought control in distant galaxies but never clenched their iron grip over Antor System."
	], 
	[
		"The war had been going for centuries but the rebel forces gained support on Endoria."
	]
];

stf.start();
			
stage.addChild(stf);

Source: ScreenTextField.as

flash as3 effect text
  1. fulafisken reblogged this from stefansvebeck
  2. stefansvebeck posted this