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

flash on 2011-5-2

import flash.display.StageScaleMode;
Get Adobe Flash player
by e_2o 02 May 2011
    Embed
/**
 * Copyright e_2o ( http://wonderfl.net/user/e_2o )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/txvD
 */

package
{
    import flash.display.Sprite;
    import flash.display.StageScaleMode;
    import flash.display.Bitmap;
    import flash.display.BitmapData;
    import flash.display.*;
    import flash.text.*;
    import flash.text.TextFormat;
    import flash.text.TextFieldAutoSize;

      public class Fractal extends Sprite
    {
        //public var rect:DrawFractal;
               public function Fractal()
        {
           // public var rect:DrawFractal;

            stage.scaleMode = StageScaleMode.NO_SCALE;
            DrawFractal();
           //var rect:DrawFractal=new DrawFractal();
           // addChild(rect);
        }
        public function DrawFractal():void
        {
            
              const mute:int=450;
              var A_srayer:Array = new Array(1);
              var A_rayer:Array = new Array(3);
              var A_bee:Array = new Array(6);

             A_rayer[0]=1;A_rayer[1]=1;A_rayer[2]=1;
             A_bee[0]=1;A_bee[1]=1;A_bee[2]=2;A_bee[3]=2;A_bee[4]=3;A_bee[5]=3;A_bee[6]=3;
                                                                     
                graphics.lineStyle(0, 0xff000000);
                graphics.beginFill(0xffff);
                for (var i:int = 0; i < A_rayer.length; i++)
                {
                graphics.moveTo(mute/(A_srayer.length+1)*A_rayer[i], 0);              
                graphics.lineTo(mute/(A_rayer.length+1)*(i+1),200);
                graphics.drawRect(mute/(A_srayer.length+1)*A_rayer[i]-5,0,10,10);
                graphics.drawRect(mute/(A_rayer.length+1)*(i+1)-5,200-5,10,10);       
                graphics.moveTo(mute/(A_srayer.length+1)*A_rayer[i], 0);              
                graphics.lineTo(mute/(A_srayer.length+1)*A_rayer[i]+20,0);   
                 }
                                                 
                 for (var k:int = 0; k < A_rayer.length; k++)
              {
              graphics.moveTo(mute/(A_srayer.length+1)*A_rayer[k]+20, 0);              
             graphics.lineTo(mute/(A_rayer.length+1)*(k+1)+20,200);
             graphics.drawRect(mute/(A_srayer.length+1)*A_rayer[k]-5+20,0,10,10);
                graphics.drawRect(mute/(A_rayer.length+1)*(k+1)-5+20,200-5,10,10);          
                }
                                                  
                 graphics.lineStyle(0, 0xABCD00);
                 for (var j:int = 0; j < A_bee.length; j++)
                {
                graphics.moveTo(mute/(A_rayer.length+1)*A_bee[j], 200);              
               graphics.lineTo(mute/(A_bee.length+1)*(j+1),400);
               graphics.moveTo(mute/(A_rayer.length+1)*A_bee[j], 200);              
               graphics.lineTo(mute/(A_rayer.length+1)*A_bee[j]+20,200);
               graphics.drawRect(mute/(A_bee.length+1)*(j+1)-5,400,10,10);
                 }
                
                 for (var l:int = 0; l < A_bee.length; l++)
                {
                graphics.moveTo(mute/(A_rayer.length+1)*A_bee[l]+20, 200);              
              graphics.lineTo(mute/(A_bee.length+1)*(l+1)+20,400);
               graphics.drawRect(mute/(A_bee.length+1)*(l+1)-5+20,400,10,10);
                 }

               
               
                
             
            
        }
    }
}