[golf]minimum types to show something
what's the minimum code to render "something" in Flash?
I often test wonderfl if it compiles as expected, load compiled swfs as expected,
so I always type some code like this, but it's a little long for a lazy programmer :-p
The result doesnt have to be a square, it can be anything visible to make me glad.
---
「なにか」を表示するための最小のコードを教えてください!
職業柄、wonderflをテストするために、エディタにタイプしたもののコンパイルが通るか、右側に表示されるか、確認することが多いのですが、ナマケモノのプログラマーにはこのようなコードは少々長すぎます
何かが表示されることを視覚的に確認できるだけでよいので、このような赤い四角である必要はなく、なんでもよいのですが、
何かを表示したいのです
そんな時のための最小のコードを教えてください!
♥0 |
Line 11 |
Modified 2010-09-03 19:24:51 |
MIT License
archived:2017-03-10 12:19:42
ActionScript3 source code
/**
* Copyright mash ( http://wonderfl.net/user/mash )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/dz8o
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
with( graphics ) {
beginFill(0xff0000);
drawRect(0,0,9,9);
}
}
}
}