Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invalid SWF version X #5262

Closed
peteshand opened this issue May 21, 2016 · 3 comments
Closed

Error: Invalid SWF version X #5262

peteshand opened this issue May 21, 2016 · 3 comments
Assignees
Labels
platform-flash Everything related to Flash / SWF
Milestone

Comments

@peteshand
Copy link

Following on from this issue: #3628
How I can run a project with set to anything higher than 17?
AIR is currently at 21, so I was expecting if I used the GIT version of Haxe 21 would supported... is this possible? or is there another way to manually set the AIR/Flex sdk? It would really handy if this could be set externally.

@nadako nadako added the platform-flash Everything related to Flash / SWF label May 21, 2016
@nadako
Copy link
Member

nadako commented May 21, 2016

It looks like version support has to be added to haxe itself: https://github.com/HaxeFoundation/haxe/blob/development/src/typing/common.ml#L892

I'm not sure if this can be avoided or not, but I think latest haxe should support current flash runtime versions, so I'm assigning this to @ncannasse and setting 3.3 tag.

@nadako nadako added this to the 3.3.0-rc1 milestone May 21, 2016
@Justinfront
Copy link
Contributor

Justinfront commented May 21, 2016

Note that if can modify a header using format library if you want a quick work round, and use dynamic to hack round access of new features.
https://github.com/HaxeFoundation/format/blob/master/tests/swf/Test.hx#L27
https://github.com/HaxeFoundation/format/blob/master/format/swf/Data.hx#L69
But perhaps you will need to do this in Ocaml because of
https://github.com/HaxeFoundation/haxe/blob/development/extra/extract.hxml
But just mentioning the format header rewrite option as it might be something Pete can do without trying to rebuild Haxe compiler and swf related Submodules, prior to formal update.

@peteshand
Copy link
Author

Could we change it to something like

pseudo code:
if (swf-version >= 12.0) return cast(swf-version, Int) + 11;

This way it wouldn't need to be used every AIR update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-flash Everything related to Flash / SWF
Projects
None yet
Development

No branches or pull requests

4 participants