Method
Navigate to: _F_1 => _H_o
Find:
public function _H_o(_arg1:String, _arg2:int, _arg3:Boolean, _arg4:Boolean) {
name = _arg1;
this.text_ = new SimpleText(_arg2, 0xFFFFFF, false, 0, 0, "Myriad Pro");
this.text_.setBold(true);
this.text_.text = _arg1.toLowerCase();
this.text_.updateMetrics();
addChild(this.text_);
this.bobbingText = _arg3;
this.isGlowing = _arg4;
this._0H_X_ = width;
this._N_a = height;
this.activate();
}
Yours will look a little different. In the parenthesis you will need to add "_arg4:Boolean".
Then at the top with all the other variables add "protected var isGlowing:Boolean;"
Then come back to the bit where you just added "_arg4:Boolean" into the parenthasis and then you're going to want to add "this.isGlowing = _arg4;" underneath "addChild(this.text_);"
Goto the onAddedToStage method and paste this inside it:
Code:
if (this.isGlowing) {
addEventListener(Event.ENTER_FRAME, this.onGlowing);
}
and paste inside removeEventListener paste
Code:
if (this.isGlowing) {
removeEventListener(Event.ENTER_FRAME, this.onGlowing);
}
then goto the bottom underneath "onEnterFrame" function and paste this function:
Code:
private function onGlowing(_arg1:Event):void{
this.text_.filters = [new DropShadowFilter(0, 0, 0, 0.5, 12, 12)];
this.text_.updateMetrics();
}
Optional: If you would like to change the glow color to something else you will need to do this:
Make a variable at the top of the page again which is:
Code:
var colorTransform:ColorTransform = new ColorTransform();
Make another variable below that called hex which is a
Then go back to your newly created function onGlowing and paste inside:
Code:
colorTransform.color = 0xFFFFF;
Then set hex to the colorTransforms color
Code:
hex = colorTransform.color;
Of-course, you will set the hex color to your liking.
Then inside the parenthesis of DropShadowFilter, change the 3rd value to "hex"
Then you're done
Personally, I prefer white as the color because it looks the most vibrant.
I almost forgot o:
When you compile, you'll get like 23 errors. Just double click each one and add either , false or , true. Depending on if you want it to be glowing text...