Quick Haxe related question
- MintPaw
-
MintPaw
- Member since: Jun. 11, 2006
- Offline.
-
- Forum Stats
- Member
- Level 10
- Programmer
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.
- MSGhero
-
MSGhero
- Member since: Dec. 15, 2010
- Offline.
-
- Forum Stats
- Supporter
- Level 16
- Game Developer
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
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.
- MintPaw
-
MintPaw
- Member since: Jun. 11, 2006
- Offline.
-
- Forum Stats
- Member
- Level 10
- Programmer
Oh, actually now the error is "Could find function free_abstract"
- MSGhero
-
MSGhero
- Member since: Dec. 15, 2010
- Offline.
-
- Forum Stats
- Supporter
- Level 16
- Game Developer
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
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? :/That happens when I export to neko as well =/ I guess it's out of your control unless it involves a different library (lime?).
Now I don't get the error but the window just pops up and disappears.
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
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.
- Sam
-
Sam
- Member since: Oct. 1, 2005
- Offline.
-
- Forum Stats
- Moderator
- Level 19
- Programmer
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
It's because I was importing an swf, that the dumbest thing ever. -_-

