OpenFL install times out even with -notimeout · Issue #1038 · openfl/openfl
zipでダウンロードしようと思ってもエラー...orz
161216 ダウンロードできた...サーバーの不具合だったのだろうか
2016年12月3日土曜日
openfl,timeoutする
2016年3月17日木曜日
openfl away3d
$ haxelib list
actuate: [1.8.6]
away3d-examples: [1.1.0]
away3d: 1.1.0 [1.2.0]
box2d: [1.2.3]
format: [3.2.1]
hxcpp: [3.2.205]
layout: [1.2.1]
lime-samples: [2.6.0]
lime: [2.9.0]
openfl-samples: [3.3.1]
openfl: 2.2.4 [3.6.0]
swf: [2.2.0]
HTML5書き出ししてみたら動くサンプルもあった...だたしPCのChromeのみでAndroidのChromeでは真っ白
PCでもfirefoxはNG? Chromeは動くものもある
$ lime create away3d
You must specify a template when using the 'create' command.
Usage: lime create away3d (directory)
Available samples:
* Basic_Fire
* Basic_Load3DS
* Basic_LoadAWD
* Basic_LoadDAE
* Basic_MipMapping
* Basic_Particles
* Basic_Shading
* Basic_SkyBox
* Basic_View
* Intermediate_Lines
* Intermediate_MD5Animation
* Intermediate_MouseInteraction
* Intermediate_ParticleExplosions
* Intermediate_PerelithKnightMD2
* __MACOSX
ちがう3Dライブラリもあるようだ
http://babylonhx.gamestudiohx.com/
2016年3月2日水曜日
openfl simplelayoutサンプルを使ってタイムラインテスト
flashcs6のタイムラインとの連携テスト currentFrameがタイムラインとは違い0スタート? createjsもそうだったような ADDED_TO_STAGEでstopしないとタイムラインムービ再生してしまう やっぱflashでレイアウトできると楽だ トゥーンアニメはなんか再現されない...いろいろ制限がありそう 161007:openflとswfのバージョンが上がってると思うので再度テスト $ haxelib list actuate: [1.8.7] box2d: [1.2.3] hxcpp: [3.3.49] layout: [1.2.1] lime-samples: [2.6.0] lime: [3.2.1] openfl-samples: [4.0.0] openfl: [4.2.0] swf: [2.2.4] 以前は上レイヤーの文字が画像の下に隠れてしまったが現状OKになってる ただしタイムライン上のstop();,this.stop();は効かないようだ Simple SWF Layout ただwindows7環境で書き出し後にchromeでローカルで動作させていたら2回ほどwindow7ごと落ちた...何が原因だろう? tableでchromeでみたらPictureって文字が表示されない,firefoxは表示されるがフォントが違う... http://hand.s59.xrea.com/openfl/sample/SimpleLayoutEdit/161216/bin/ addFremeScriptでCS6のタイムライン上でstop();をすることができた ただ必ず1枚目の画像が一瞬出てしまう... あと表示するとPCのファンが回り出すのが気になる...負荷が大きいのだろうか
2015年10月8日木曜日
openflでswfliteのmulti frameが使えるらしいのでopenfl upgradeして試したらエラーが出る
openflでswfliteのmulti frameが使えるらしいのでopenfl upgradeして試したらエラーが出る
/usr/lib/haxe/lib/lime/2,6,8/lime/graphics/format/JPEG.hx:93: characters 14-78 : Too many arguments
/usr/lib/haxe/lib/lime/2,6,8/lime/graphics/format/JPEG.hx:93: characters 14-78 : Function 'toDataURL' requires arguments : ?type
haxelib list
actuate: [1.8.6]
as3hx: [1.0.2]
box2d: [1.2.3]
flixel: [3.3.11]
hxcpp: 3.2.171 [3.2.180] 3.2.102
layout: 1.2.0 [1.2.1]
lime-samples: 2.3.0 [2.6.0]
lime: [2.6.8] 2.6.1 2.6.6 2.6.2 2.6.3 2.4.8 2.4.7
openfl-samples: 2.2.2 [3.3.0]
openfl: 3.3.6 3.3.4 3.3.3 3.1.1 3.1.2 [3.3.8] 3.3.2
swf: 1.8.9 [2.1.1] 2.0.2 2.0.4 2.0.1
よくわからない
違うマシンでやったら動いた
Flash CS6でSimpleSWFLayoutのFlaにアニメーション加えて試したら動いた! すばらしい
actuate: [1.8.6]
box2d: [1.2.3]
hxcpp: 3.2.171 [3.2.180] 3.2.102
layout: 1.2.0 [1.2.1]
lime-samples: [2.6.0] 2.5.1
lime: 2.5.3 [2.6.8] 2.6.1 2.6.6 2.5.2 2.6.3 2.6.7
openfl-samples: 3.1.0 [3.3.1] 3.3.0
openfl: 3.3.6 3.2.2 3.3.4 3.3.7 [3.3.8] 3.3.0 3.3.2
swf: 1.9.1 2.1.0 [2.1.1] 2.0.2 2.0.4 2.0.1
swfのバージョンがあがってる
古い方もhaxelib remove swfしてからhaxelib install swfにしたらバージョン上がった
...けど同じエラー
haxelib list
actuate: [1.8.6]
as3hx: [1.0.2]
box2d: [1.2.3]
flixel: [3.3.11]
hxcpp: 3.2.171 [3.2.180] 3.2.102
layout: 1.2.0 [1.2.1]
lime-samples: 2.3.0 [2.6.0]
lime: [2.6.8]
openfl-samples: 2.2.2 [3.3.1] 3.3.0
openfl: 3.3.6 3.3.4 3.3.3 3.1.1 3.1.2 [3.3.8] 3.3.2
swf: [2.1.1]
以下からhaxeのインストーラinstall-haxe.shをダウンロードして再度インストールしたら動いた...
Download
SimpleSWFLayout のサンプルをopenfl test flash するとエラーが出る?
fixme:exec:SHELL_execute flags ignored: 0x00000100
fixme:winediag:AUDDRV_GetAudioEndpoint Winepulse is not officially supported by the wine project
fixme:winediag:AUDDRV_GetAudioEndpoint For sound related feedback and support, please visit http://ubuntuforums.org/showthread.php?t=1960599
2014年6月24日火曜日
X-LABO: Haxe OpenFL: Android 出力設定
ubuntuのideaで書き出しをandroid指定にしたら以下のように出た
Warning:haxe: sh: 1: arm-linux-androideabi-g++: not found
OpenFL :: Building for Android fails
2014年6月23日月曜日
openfl,xml,test
html5_XmlTest03 改行が効かない
XmlTest03 久しぶりに書き出したら改行される
flash_XmlTest03
画像のサイズ指定をxmlで指定してみたテスト
openflのhtml5書き出しの場合ローディング表示が勝手についてくれるがスマホで見るとサイズが自動的にリサイズはされない
flash書き出しもローディン表示あるようだ、一瞬でわからんけど
テキストフィールドの改行もいまいちわからん
ideaでとりあえずlocalhostで動いてくれる辺りはcreatejsより楽なんだけど色々躓く
flash書き出しはe.target.nameでインスタンス名が取れるのでそこで分岐するやり方ができるがhtml5書き出しだとnullになるので
インスタンスごとにイベントリスナを付与して処理させないといけない?
↓
cast(event.target, Sprite).name
で取れるようだ
久しぶりにhtml5書き出ししたらエラーが出た
/usr/lib/haxe/std/neko/_std/Xml.hx:25: lines 25-423 : Field nodeType has different type than in core type
/usr/lib/haxe/std/neko/_std/Xml.hx:25: lines 25-423 : XmlType should be XmlType
/usr/lib/haxe/std/neko/_std/Xml.hx:25: lines 25-423 : Field parent has different property access than core type
ここ見てhaxeを入れなおしたら動いた...
Haxe 3.2 / openfl 3.1.0 / neko 2.0.0 "Constant expression expected" - Help - OpenFL Community
2014年6月20日金曜日
2014年6月19日木曜日
2014年6月17日火曜日
2014年6月16日月曜日
DisplayObjectContainer
DisplayObjectContainer - Adobe ActionScript® 3 (AS3 ) API Reference
package{
import flash.display.Sprite;
import flash.events.MouseEvent;
public class DisplayObjectTest01 extends Sprite {
public function DisplayObjectTest01 ():void{
var container:Sprite = new Sprite();
addChild(container);
var circle1:Sprite = new Sprite();
circle1.graphics.beginFill(0xFF0000);
circle1.graphics.drawCircle(40, 40, 40);
circle1.addEventListener(MouseEvent.CLICK, clicked);
var circle2:Sprite = new Sprite();
circle2.graphics.beginFill(0x00FF00);
circle2.graphics.drawCircle(100, 40, 40);
circle2.addEventListener(MouseEvent.CLICK, clicked);
var circle3:Sprite = new Sprite();
circle3.graphics.beginFill(0x0000FF);
circle3.graphics.drawCircle(70, 80, 40);
circle3.addEventListener(MouseEvent.CLICK, clicked);
container.addChild(circle1);
container.addChild(circle2);
container.addChild(circle3);
addChild(container);
function clicked(event:MouseEvent):void {
var circle:Sprite = Sprite(event.target);
var topPosition:uint = container.numChildren - 1;
container.setChildIndex(circle, topPosition);
}
}
}
}
Link
package;
import flash.display.Sprite;
import flash.events.MouseEvent;
class Main extends Sprite
{
var container : Sprite = new Sprite();
public function new()
{
super();
//var container : Sprite = new Sprite();
addChild(container);
var circle1 : Sprite = new Sprite();
circle1.graphics.beginFill(0xFF0000);
circle1.graphics.drawCircle(40, 40, 40);
circle1.addEventListener(MouseEvent.CLICK, clicked);
var circle2 : Sprite = new Sprite();
circle2.graphics.beginFill(0x00FF00);
circle2.graphics.drawCircle(100, 40, 40);
circle2.addEventListener(MouseEvent.CLICK, clicked);
var circle3 : Sprite = new Sprite();
circle3.graphics.beginFill(0x0000FF);
circle3.graphics.drawCircle(70, 80, 40);
circle3.addEventListener(MouseEvent.CLICK, clicked);
container.addChild(circle1);
container.addChild(circle2);
container.addChild(circle3);
addChild(container);
}
function clicked(event : MouseEvent) : Void{
var circle : Sprite = cast((event.target), Sprite);
var topPosition : Int = container.numChildren - 1;
container.setChildIndex(circle, topPosition);
};
}
DisplayObjectTest01
2014年6月15日日曜日
openfl sample
OpenFl Sample
openflのsampleをxreaにあげてみた
SimpleSWFLayoutはダミー画像を入れてみたが真黒になってしまった
BunnyMark ってサンプルにはFPS表示があるがFPSってクラスがあるようだ
package openfl.display;
import haxe.Timer;
import openfl.events.Event;
import openfl.text.TextField;
import openfl.text.TextFormat;
class FPS extends TextField {
public var currentFPS (default, null):Float;
private var cacheCount:Int;
private var times:Array ;
public function new (x:Float = 10, y:Float = 10, color:Int = 0x000000) {
super ();
this.x = x;
this.y = y;
currentFPS = 0;
selectable = false;
defaultTextFormat = new TextFormat ("_sans", 12, color);
text = "FPS: ";
cacheCount = 0;
times = [];
addEventListener (Event.ENTER_FRAME, this_onEnterFrame);
}
// Event Handlers
private function this_onEnterFrame (event:Event):Void {
var currentTime = Timer.stamp ();
times.push (currentTime);
while (times[0] < currentTime - 1) {
times.shift ();
}
var currentCount = times.length;
currentFPS = Math.round ((currentCount + cacheCount) / 2);
if (currentCount != cacheCount && visible) {
text = "FPS: " + currentFPS;
}
cacheCount = currentCount;
}
}
</float>?
2014年6月8日日曜日
2014年6月7日土曜日
ERROR: The following files have xml notation that will need porting. See http://haxe.org/doc/advanced/xml_fast
as3hxでasファイル変換しようとしたら出たエラーメッセージ
xml関連よーわからん
Using haxe.xml.Fast - Haxe
2014年6月5日木曜日
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
登録:
コメント (Atom)
キーバインドの変更は、OSやデスクトップ環境によって最適な方法が異なります。Caps LockをCtrlに置き換えるための、WindowsとLinux(Ubuntu, Fedora, NixOS、X11/Wayland別)における効率的な方法を解説します。 Windows (...
-
中古で手に入れたONKYO X-U1だがスピーカサランネットが汚れていたので洗ってみた サランネットは接着剤で止めてあったので外すのにちょっと苦労した 取り外した状態のX-U1(D-U1)はあまり写真など見つけられなかったので上げてみる ウーハーユニットの...
-
Windows 11 で IME の切り替えを Ctrl+Space に設定する方法 Windows 11 で、 IME(日本語入力システム)のオンオフを Ctrl+Space キーで行うように設定したいのですね。 以下に、 その方法を詳しくご紹介します。 設定手順 設定アプ...
-
古いAtomプロセッサを搭載したノートPCで動作するLinuxディストリビューションには、軽量でリソース消費が少ないものが適しています。以下に、特におすすめのディストリビューションをいくつか紹介します。 ## **おすすめのLinuxディストリビューション** - **Pup...