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

forked from: 同じ図形の繰り返し描画:for文利用

8個の四角形を横一列に並べる
@author shmdmoto
/**
 * Copyright niwa28 ( http://wonderfl.net/user/niwa28 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/6A8J
 */

// forked from shmdmoto's 同じ図形の繰り返し描画:for文利用
package 
{
    import frocessing.display.F5MovieClip2D;
    /**
     * 8個の四角形を横一列に並べる
     * @author shmdmoto
     */
    public class GraphicExample extends F5MovieClip2D
    {
        public function setup() : void
        {
            // ここに描画命令を記述します
             var x:Number;
             for( x = 0 ; x <= 350 ; x = x + 50 ) {
                rect(  x, 100, 40, 40);
             }
             
             for( x = 0 ; x <= 350 ; x = x + 50){
                rect( x,200,40,40);
             }
              
              for( x = 0 ; x <= 350 ; x = x + 50){
           rect( x,300,40,40);
              }
        }
    }
}