flash on 2010-10-24
♥0 |
Line 15 |
Modified 2010-10-24 00:24:17 |
MIT License
archived:2017-03-20 13:37:03
ActionScript3 source code
/**
* Copyright 9re ( http://wonderfl.net/user/9re )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/igmH
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
with (addChild(new TextField)) {
"twitter http://twitter.com/ ミクシィ http://mixi.jp/".replace(
/https?:\/\/((([a-z]+)\.?)+)\//g,
function():String {appendText(arguments.join('\n') + "\n\n");return "";});
width = textWidth + 4;
height = textHeight + 4;
}
}
}
}