MinimalCompsで日本語表示(ff: FontLoaderを使ってMinimalCompsで日本語表示)
/**
* Copyright Fake ( http://wonderfl.net/user/Fake )
* GNU General Public License, v3 ( http://www.gnu.org/licenses/quick-guide-gplv3.html )
* Downloaded from: http://wonderfl.net/c/vSAD
*/
// forked from Fake's FontLoaderを使ってMinimalCompsで日本語表示
package {
import flash.display.Sprite;
import com.bit101.components.Text;
import com.bit101.components.Style;
import com.bit101.components.PushButton;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
Style.embedFonts = false;
Style.fontSize = 10;
var debugout:Text = new Text(parent, 50, 50, "デフォルトフォントがあるから、");
var btn:PushButton = new PushButton(parent, 50, 180, "単に日本語表示させるだけなら、");
btn.setSize(150, 20);
var btn2:PushButton = new PushButton(parent, 50, 220, "FontLoader使う必要ないよね…");
btn2.setSize(150, 20); }
}
}