2014年6月4日水曜日
package
{
import flash.display.Sprite;
import flash.text.*;
import flash.events.Event;
import flash.events.TextEvent;
import flash.events.MouseEvent;
public class TextInputExample extends Sprite
{
private var myTextBox1:TextField = new TextField();
private var myTextBox2:TextField = new TextField();
public function TextInputExample()
{
myTextBox1.type = TextFieldType.INPUT;
myTextBox1.width = 200;
myTextBox1.height = 20;
myTextBox1.background = true;
myTextBox1.border = true;
myTextBox2.x=220;
addChild(myTextBox1);
addChild(myTextBox2);
myTextBox1.addEventListener(TextEvent.TEXT_INPUT,textInputHandler);
}
public function textInputHandler(event:TextEvent):void
{
myTextBox2.text=event.text;
}
}
}
package;
//import flash.text.TextField;
import flash.display.Sprite;
import flash.text.*;
import flash.events.Event;
import flash.events.TextEvent;
import flash.events.MouseEvent;
class Main extends Sprite
{
private var myTextBox1 : TextField = new TextField();
private var myTextBox2 : TextField = new TextField();
public function new()
{
super();
myTextBox1.type = TextFieldType.INPUT;
myTextBox1.width = 200;
myTextBox1.height = 20;
myTextBox1.background = true;
myTextBox1.border = true;
myTextBox2.x = 220;
myTextBox2.border = true;
addChild(myTextBox1);
addChild(myTextBox2);
myTextBox1.addEventListener(TextEvent.TEXT_INPUT, textInputHandler);
}
public function textInputHandler(event : TextEvent) : Void
{
myTextBox2.text = event.text;
}
}
Flash
html5
html5は文字入力出来ない...
fukuokahaxe / Haxe勉強会 / wiki / Haxe資料 / OpenFL / HTML5 — Bitbucket
2014年6月3日火曜日
SyntaxHighlighterのテストとas3hxのテスト
haxe:3.1.3
openfl:2.0.0
as3hxで変換した
Link
HTML5書き出し
Link
haxe:3.1.3
openfl:2.0.0
package {
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
public class TextFieldExample extends Sprite {
private var label:TextField;
private var labelText:String = "Hello world and welcome to the show.";
public function TextFieldExample() {
configureLabel();
setLabel(labelText);
}
public function setLabel(str:String):void {
label.text = str;
}
private function configureLabel():void {
label = new TextField();
label.autoSize = TextFieldAutoSize.LEFT;
label.background = true;
label.border = true;
var format:TextFormat = new TextFormat();
format.font = "Verdana";
format.color = 0xFF0000;
format.size = 10;
format.underline = true;
label.defaultTextFormat = format;
addChild(label);
}
}
}
as3hxで変換した
package;
import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
class Main extends Sprite
{
private var label : TextField;
private var labelText : String = "Hello world and welcome to the show.";
public function new()
{
super();
configureLabel();
setLabel(labelText);
}
public function setLabel(str : String) : Void{
label.text = str;
}
private function configureLabel() : Void{
label = new TextField();
label.autoSize = TextFieldAutoSize.LEFT;
label.background = true;
label.border = true;
var format : TextFormat = new TextFormat();
format.font = "Verdana";
format.color = 0xFF0000;
format.size = 10;
format.underline = true;
label.defaultTextFormat = format;
addChild(label);
}
}
Flash書き出しLink
HTML5書き出し
Link
Emmet Documentation
ubuntuのchromeがswfファイル開こうとすると保存ダイアログ出るようになっちゃったのでhtmlを作るようにする
emmetでembedのswfファイル指定する場合はこれでいいのか?
html:5>embed[src=hoge.swf]
thinkpad x61sでchromeosをusb起動で試してみたらかなり軽くていい感じ
vimとかも起動してびっくりした
xmodmapもあるようだけどubuntuの流用できるのだろうか
中古PC活用:Windows XPパソコンにChromium OSをインストールして再利用する~Chromebookを作ってみよう~ (1/2) - @IT
登録:
コメント (Atom)
キタ━━━━(゚∀゚)━━━━!! 🎉 設定うまく動きましたね!おめでとうございます🔥 それでは 今回の設定を完全にまとめて残せるように整理 します。 ThinkPad X270 + NixOS 25.05 + LXQt + LightDM + x11vnc のリモ...
-
中古で手に入れたONKYO X-U1だがスピーカサランネットが汚れていたので洗ってみた サランネットは接着剤で止めてあったので外すのにちょっと苦労した 取り外した状態のX-U1(D-U1)はあまり写真など見つけられなかったので上げてみる ウーハーユニットの...
-
Windows 11 で IME の切り替えを Ctrl+Space に設定する方法 Windows 11 で、 IME(日本語入力システム)のオンオフを Ctrl+Space キーで行うように設定したいのですね。 以下に、 その方法を詳しくご紹介します。 設定手順 設定アプ...
-
古いAtomプロセッサを搭載したノートPCで動作するLinuxディストリビューションには、軽量でリソース消費が少ないものが適しています。以下に、特におすすめのディストリビューションをいくつか紹介します。 ## **おすすめのLinuxディストリビューション** - **Pup...