ãèåããããªãã、ããããããã! Trick or Treat! ã¨ãããã¨ã§、ããã¦ã£ã³。ActionScript 3.0ã使ã£ã¦10åã»ã©ã§ä½æ。ã«ããã£ãã¯ãªãã¯ããã¨è²ãå¤ãã。 以ä¸ã«、ã½ã¼ã¹ã³ã¼ãã示ã。 Halloween.as // Halloween.as // by nox, 2008.10.31 package { import flash.display.*; import flash.text.*; import flash.events.*; import flash.utils.Timer; public class Halloween extends Sprite { // dafont.com http://www.dafont.com/ [Embed(systemFont="Halloween Borders", fontName="HalloweenFont", mimeType="application/x-font" )] private static const HalloweenFont:Class; private var txtHalloween:TextField = new TextField(); private var HalloweenStageWidth:int, HalloweenStageHeight:int; private var timer:Timer; private function ClickHandler(event:Event):void { var format:TextFormat = txtHalloween.getTextFormat(); format.color = Math.random() * 0xFFFFFF; txtHalloween.setTextFormat(forma...
Good things. Bad things.