Archive for the ‘coding’ Category

Check out my latest: Ministakes.com

Working on this for over a year now. Check it out here:

www.ministakes.com

Flash AS3 TextField Alpha

A though one to figure out: Setting the Alpha (transparancy) value for a textfield:


import flash.display.BlendMode;

[...]

textfield.text = 'Some text';
textfield.blendMode = BlendMode.LAYER;
textfield.alpha = 0.5;

You can also add textFormatting if you like…

AS3: Loading external SWF and calling its functions

I’ve had some trouble with loading an external SWF file and then calling the functions of that SWF file. It works like so:

Main swf code:

Sub swf code:

Return top