上記サイトに「パーティクルデモ」というソースが公開されていた。
・Main.hx
・Particle.hx
の2つのソースをダウンロードし実行してみる。
FlashDevelop起動
[プロジェクト] - [新規プロジェクト]
"JS Project"
名前、場所は適当に指定
Authorの入力を聞いてくる
適応に入力
プロジェクトツリーのsrcフォルダから Main.hxを削除
srcフォルダ右クリックで [新規作成] - [既存のファイルを追加]
Main.hx
Particle.hx
[プロジェクト] - [プロジェクトをビルド]
→ 3行目でエラー
import flash.display.Bitmap でエラーとなる
You cannot access the flash package while targeting js (for flash.display.Bitmap)
■limeインストール
C:\Users\user>haxelib install lime
You already have lime version 7.1.1 installed
C:\Users\user>haxelib run lime setup
Downloading hxcpp-4,0,4.zip...
Download complete : 14057430 bytes in 12.7s (1076.7KB/s)
Installing hxcpp...
Current version is now 4.0.4
Done
Downloading lime-samples-7,0,0.zip...
Download complete : 8058725 bytes in 8.3s (938KB/s)
Installing lime-samples...
Current version is now 7.0.0
Done
C:\Users\user>
You already have lime version 7.1.1 installed
C:\Users\user>haxelib run lime setup
Downloading hxcpp-4,0,4.zip...
Download complete : 14057430 bytes in 12.7s (1076.7KB/s)
Installing hxcpp...
Current version is now 4.0.4
Done
Downloading lime-samples-7,0,0.zip...
Download complete : 8058725 bytes in 8.3s (938KB/s)
Installing lime-samples...
Current version is now 7.0.0
Done
C:\Users\user>
■OpenFLインストール
C:\Users\user>lime install openfl
Downloading openfl-8,6,4.zip...
Download complete : 3738937 bytes in 4.9s (739.4KB/s)
Installing openfl...
Current version is now 8.6.4
Done
lime is up to date
hxcpp is up to date
lime-samples is up to date
Downloading openfl-samples-8,4,0.zip...
Download complete : 15031952 bytes in 14.1s (1034.6KB/s)
Installing openfl-samples...
Current version is now 8.4.0
Done
Downloading actuate-1,8,7.zip...
Download complete : 753815 bytes in 2.9s (251.9KB/s)
Installing actuate...
Current version is now 1.8.7
Done
Downloading box2d-1,2,3.zip...
Download complete : 264916 bytes in 2.1s (119.9KB/s)
Installing box2d...
Current version is now 1.2.3
Done
Downloading layout-1,2,1.zip...
Download complete : 40609 bytes in 0.9s (43KB/s)
Installing layout...
Current version is now 1.2.1
Done
C:\Users\user>
Downloading openfl-8,6,4.zip...
Download complete : 3738937 bytes in 4.9s (739.4KB/s)
Installing openfl...
Current version is now 8.6.4
Done
lime is up to date
hxcpp is up to date
lime-samples is up to date
Downloading openfl-samples-8,4,0.zip...
Download complete : 15031952 bytes in 14.1s (1034.6KB/s)
Installing openfl-samples...
Current version is now 8.4.0
Done
Downloading actuate-1,8,7.zip...
Download complete : 753815 bytes in 2.9s (251.9KB/s)
Installing actuate...
Current version is now 1.8.7
Done
Downloading box2d-1,2,3.zip...
Download complete : 264916 bytes in 2.1s (119.9KB/s)
Installing box2d...
Current version is now 1.2.3
Done
Downloading layout-1,2,1.zip...
Download complete : 40609 bytes in 0.9s (43KB/s)
Installing layout...
Current version is now 1.2.1
Done
C:\Users\user>
FlashDevelopを再起動し、ビルド・実行を試してみる。
→ できました。
0 件のコメント:
コメントを投稿