here is the code
//————–origninal from: http://www.osflash.org/doku.php?id=flashcoders:undocumented:flash-7-export-to-flash-8
// if anyone knows how I can make this reverse the blur I would appreciate it.function blurChange():Void {
if (nTimes >= 20) {
trace(nTimes);
dropShadow.blurY = nTimes-=2;
txtField.filters = [dropShadow];
txtField.htmlText = “The Horror”;
}
else if (nTimes = 20) {
dropShadow.blurY = nTimes+=2;
txtField.filters = [dropShadow];
txtField.htmlText = “The Horror”;
//clearInterval (nInterval);
}}
var nTimes:Number = 100;
var nInterval:Number = setInterval(blurChange, 100);// create textfield
this.createTextField(”txtField”, this.getNextHighestDepth(), 50, 100, 500, 800);
txtField.html = true;txtField.textColor = 0×000000;
// set new antialias mode
txtField.antiAliasType = flash.text.TextRenderer.AntiAliasType.ADVANCED;
// create shadow filter
var dropShadow = new flash.filters.DropShadowFilter();
dropShadow.blurX = 1;
dropShadow.blurY = nTimes; //var from problem
dropShadow.distance = 3;
dropShadow.angle = 35;
dropShadow.quality = 4;
dropShadow.alpha = 75;
// apply shadow filter
txtField.filters = [dropShadow];
Last 5 posts in actionscript
- Using Flash Player 10 to produce Dynamic Musical Notes - May 20th, 2008
- Flash Player 10 Dynamic Sound Generation - May 20th, 2008
- How to compile and examples for Flash Player 10 or ASTRO BETA - May 16th, 2008
- How to use Bitmap and BitmapData in ActionScript 3 - v2 - April 23rd, 2008
- How to use Bitmap and BitmapData in ActionScript 3 - v1 - April 21st, 2008
Last 5 posts in flash 8
- The funniest commerial - September 26th, 2005
- The Horror Update (required flash 8 beta) - August 22nd, 2005
Josh Weatherspoon, A self-proclaimed millionaire who for some reason has to work as a Flash Developer, at Travelocity in Dallas(Southlake), TX.
Sorry, no comments yet.