ActionScript, however, is a wonderful programming language that I am learning more about everyday, can do this for us. One of the simpler concepts is that ActionScript can draw elements based around parameters that are defined within the code. Here is the code I have begun using to create an outline around my .swf files.
/*1px stroke outline */
Stage.scaleMode = "exactFit";var stroke:MovieClip = _root.createEmptyMovieClip("stroke", 1000);stroke.lineStyle(1, 0x000000, 100);stroke.moveTo(0,0);stroke.lineTo(0, Stage.height-1);stroke.lineTo(Stage.width-1, Stage.height-1);stroke.lineTo(Stage.width-1, 0);stroke.lineTo(0, 0);It is quick, lightweight and reusable. Portable code combined with a library of commonly used assets has helped greatly in decreasing production time while increasing efficiency. I hope you can find some use for this.

No comments:
Post a Comment