I guys,
I been given some banners to adapt, unfortunately on not very familiar with AS3 and im trying to align a word to the left but for the life of me i cant figure out what to change. Can anyone please shed some light? I can get letter spacing to work but I can't find an align command.
Actionscript Code:
import flash.events.EventDispatcher;
import flash.text.StyleSheet;
import flash.text.TextFormatAlign;
public class ScreenTextModelSky extends EventDispatcher implements IScreenTextModel
{
private static var _inst:ScreenTextModelSky;
private static var _text:Array = [
// don't forget to update the embeded characters in the fla!
['<span class="b">Free</span>', 'text', 'text'', 'text''],
['<span class="c">text' ', 'text'</span>', '<span class="d">text'</span> ',],
['<span class="b">text'</span> text'', '<span class="b">text'</span> minutes', '<span class="b">text'</span> text'a'],
['text'', '<span class="b">text'', 'text' </span>', 'text' ', 'text'']
];
private var _style:StyleSheet;
public function ScreenTextModelSky(enforcer:Singleton)
{
}
public static function getModel():ScreenTextModelSky
{
if (_inst==null) _inst = new ScreenTextModelSky(new Singleton());
return _inst;
}
public function getText(num:uint):Array
{
return _text[num];
}
public function getStyle():StyleSheet
{
if (_style==null)
{
_style = new StyleSheet();
var body:Object = {
fontFamily: (new FrutigerFont()).fontName,
fontSize: 16.5,
color: '#FFFFFF'
};
var c:Object = {
fontFamily: (new FrutigerBoldFont()).fontName,
fontSize: 28,
letterSpacing: 0
};
var d:Object = {
fontFamily: (new FrutigerFont()).fontName,
fontSize: 11,
letterSpacing: 0
};
var b:Object = {
fontFamily: (new FrutigerBoldFont()).fontName
};
_style.setStyle('body', body);
_style.setStyle('.b', b);
_style.setStyle('.c', c);
_style.setStyle('.d', d);
}
return _style;
}
}
}
class Singleton {}