Be a Supporter!

Quick Haxe related question

  • 265 Views
  • 8 Replies
New Topic Respond to this Topic
MintPaw
MintPaw
  • Member since: Jun. 11, 2006
  • Offline.
Forum Stats
Member
Level 10
Programmer
Quick Haxe related question 2014-04-26 22:49:47 Reply

I know this is kinda iffy-ly related to Flash, but it's for a Ludum Dare and I'm running out of places to ask.

So there's two questions really.
1. Using Lib.current.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; doesn't work in browser, even though it's in a function called by a MouseEvent. Why is this?

And
2. When I compile to Windows target it compiles 100% ok, but when I run it it quickly opens and closes. If I use the command "haxelib run openfl run project.xml windows" it reveals the error "Could not find primitive lime_bitmap_data_set_flags__1."

I'm using the libraries: "actuate, openfl, swf"

I thank you in advance if anyone can answer these for me and I'll owe ya a big one.


If ya have something to say, PM me. I have a lot of time to spare.
Also never PM egg82.

BBS Signature
MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to Quick Haxe related question 2014-04-26 23:19:46 Reply

At 4/26/14 10:49 PM, MintPaw wrote: 1. Using Lib.current.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; doesn't work in browser, even though it's in a function called by a MouseEvent. Why is this?

Idk, but will <window fullscreen="true" /> work in your proj.xml? I haven't played with fullscreen yet.

And
2. When I compile to Windows target it compiles 100% ok, but when I run it it quickly opens and closes. If I use the command "haxelib run openfl run project.xml windows" it reveals the error "Could not find primitive lime_bitmap_data_set_flags__1."

Last time I had an issue like that, I had to remove openfl then reinstall it via haxelib. It gets updated with small bug fixes like that, but the version number doesn't increment so haxelib won't auto update it. If that doesn't work then try installing the git version directly.

MintPaw
MintPaw
  • Member since: Jun. 11, 2006
  • Offline.
Forum Stats
Member
Level 10
Programmer
Response to Quick Haxe related question 2014-04-26 23:44:44 Reply

Removing and installing OpenFL and OpenFL-Native does nothing, even downloaded the Git, any other ideas? :/
Now I don't get the error but the window just pops up and disappears.


If ya have something to say, PM me. I have a lot of time to spare.
Also never PM egg82.

BBS Signature
MintPaw
MintPaw
  • Member since: Jun. 11, 2006
  • Offline.
Forum Stats
Member
Level 10
Programmer
Response to Quick Haxe related question 2014-04-26 23:52:00 Reply

Oh, actually now the error is "Could find function free_abstract"


If ya have something to say, PM me. I have a lot of time to spare.
Also never PM egg82.

BBS Signature
MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to Quick Haxe related question 2014-04-27 00:23:10 Reply

At 4/26/14 11:44 PM, MintPaw wrote: Removing and installing OpenFL and OpenFL-Native does nothing, even downloaded the Git, any other ideas? :/
Now I don't get the error but the window just pops up and disappears.

That happens when I export to neko as well =/ I guess it's out of your control unless it involves a different library (lime?).

MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to Quick Haxe related question 2014-04-27 00:24:16 Reply

At 4/27/14 12:23 AM, MSGhero wrote:
At 4/26/14 11:44 PM, MintPaw wrote: Removing and installing OpenFL and OpenFL-Native does nothing, even downloaded the Git, any other ideas? :/
Now I don't get the error but the window just pops up and disappears.
That happens when I export to neko as well =/ I guess it's out of your control unless it involves a different library (lime?).

Is your haxe updated to 3.1.3 (whatever the latest is)? It doesn't get updated via haxelib, you have to manually download it.

MintPaw
MintPaw
  • Member since: Jun. 11, 2006
  • Offline.
Forum Stats
Member
Level 10
Programmer
Response to Quick Haxe related question 2014-04-27 00:55:33 Reply

At 4/27/14 12:24 AM, MSGhero wrote: Is your haxe updated to 3.1.3 (whatever the latest is)? It doesn't get updated via haxelib, you have to manually download it.

Yup, this sucks then, I guess I'll be submitting a flash to the Ludum Dare.


If ya have something to say, PM me. I have a lot of time to spare.
Also never PM egg82.

BBS Signature
Sam
Sam
  • Member since: Oct. 1, 2005
  • Offline.
Forum Stats
Moderator
Level 19
Programmer
Response to Quick Haxe related question 2014-04-28 12:01:16 Reply

At 4/26/14 10:49 PM, MintPaw wrote: So there's two questions really.
1. Using Lib.current.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE; doesn't work in browser, even though it's in a function called by a MouseEvent. Why is this?

Is your target Flash and it's embedded with HTML or you're targeting HTML5? If it's the latter, it's most likely due to the infancy of the OpenFL HTML5 backend - it seems to have a lot of stuff missing at the moment.

Hope your LD project went well either way!

MintPaw
MintPaw
  • Member since: Jun. 11, 2006
  • Offline.
Forum Stats
Member
Level 10
Programmer
Response to Quick Haxe related question 2014-04-30 13:07:52 Reply

It's because I was importing an swf, that the dumbest thing ever. -_-


If ya have something to say, PM me. I have a lot of time to spare.
Also never PM egg82.

BBS Signature