In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Askcode Generation C# 200 * 150

Get Adobe Flash player
by reboltutorial 30 May 2010
    Embed
/**
 * Copyright reboltutorial ( http://wonderfl.net/user/reboltutorial )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/aRtE
 */


package {
    import flash.display.*;
    import flash.text.*;
    import flash.net.URLRequest;
    import flash.filters.*;
    import flash.geom.*;

    public class FlashTest extends Sprite {
        public function FlashTest() {
      var mc:MovieClip = new MovieClip();
      mc.graphics.beginFill(0x886830);

        var fillType:String = GradientType.RADIAL;
        var colors:Array = [0x886830, 0x886000];
        var alphas:Array = [1, 1];
        var ratios:Array = [0xEE,0x00];
        var matr:Matrix = new Matrix();
        matr.createGradientBox(500, 500, 0, 0, 0);
        var spreadMethod:String = SpreadMethod.PAD;  

      mc.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);
      mc.x = 80;
      mc.y = 60;
      mc.graphics.drawRoundRect(0, 0, 200, 150,25,25);
      addChild(mc);  

      //from tut http://blog.0tutor.com/post.aspx?id=116
      var filt:GlowFilter = new GlowFilter();
      var filt_shadow:DropShadowFilter = new DropShadowFilter();
      //here we add some properties to the two filters, the glow filter we give a color.
       filt.color = 0x00FF00;  

       //and how much it should blur.
       filt.blurX = 7;
       filt.blurY = 7;  

       //then the dropshadow filter, also how much it should blur on the object.
       filt_shadow.blurX = 4;
       filt_shadow.blurY = 4;  

       //and finally an alpha, the alpha goes from 1 to 0, 1 being fully visible and 0 is transparent, then of cause .5 is just in between.
       filt_shadow.alpha = .4;  

       // mc.filters =  [filt,filt_shadow];

      var theTextField:TextField = new TextField();
      theTextField.border = false;
      theTextField.x = 10;
      theTextField.y = 10;

      theTextField.autoSize = TextFieldAutoSize.LEFT;
      theTextField.wordWrap = true;
      theTextField.width = 120;
      theTextField.text = "Askcode Generation .Com";

      var myformat:TextFormat = new TextFormat();
      myformat.color = 0xFFFFFF;
      myformat.size =24;
      myformat.align="center";
      myformat.font = "Impact";

      theTextField.setTextFormat(myformat);
      mc.addChild(theTextField);    

      var url:String = "http://reboltutorial.com/images/csharp.png";
      var urlReq:URLRequest = new URLRequest(url);

      var ldr:Loader = new Loader();
      ldr.load(urlReq);
      ldr.x=130;
      ldr.y=65;
      mc.addChild(ldr);

        }
    }
}