My first finished 100% actionscripted flash app.

August 18th, 2005


I am excited to show off My first finished 100% actionscripted flash app. though crude, I will massage it but I wanted to put it up. Oh it using the lates flash 8 actionscript not out to the general public. I modified it from: http://www.osflash.org/doku.php?id=flashcoders:undocumented:flash-7-export-to-flash-8

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];

Entry Filed under: actionscript, flash 8

Leave a Comment

Required

Required, hidden

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Trackback this post  |  Subscribe to the comments via RSS Feed