forked from: forked from: 意味が分からないw AS3
/**
* Copyright kamiseto ( http://wonderfl.net/user/kamiseto )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/uIHq
*/
// forked from kamiseto's forked from: 意味が分からないw AS3
// forked from nitoyon's 意味が分からないw AS3
// forked from 9re's forked from: 意味が分からないw
// forked from paq's 意味が分からないw
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest( ) {
init(8, 50, 50, 8)
(A)(A)(A)(A)(A)(A)(A)(A)
(A)(A)(A)(A)(A)(A)(A)(A)
(A)(A)(A)(A)(A)(A)(A)(A)
(A)(A)(A)(A)(A)(A)(A)(A)
(A)(A)(A)(A)(A)(A)(A)(A)
(A)(A)(A)(A)(A)(A)(A)(A)
(A)(A)(A)(A)(A)(A)(A)(A)
(A)(A)(A)(A)(A)(A)(A)(A)
}
private const A:uint = 0xff00ff;
private const S:uint = 0x0000ff;
private const Z:uint = 0x0000ff;
private function init($cols:int, $width:int, $height:int, $margin:int):Function {
var i:int = 0;
return function (col:uint = 0xffcccc):Function {
graphics.beginFill(col);
graphics.drawRect((i % $cols) * ($width + $margin), Math.floor(i / $cols) * ($width + $margin), $width, $height);
graphics.endFill();
i++;
return arguments.callee
};
}
}
}