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

Random.int() crashes flash version of Zeedonk #419

Open
TerryCavanagh opened this issue Oct 7, 2015 · 1 comment
Open

Random.int() crashes flash version of Zeedonk #419

TerryCavanagh opened this issue Oct 7, 2015 · 1 comment

Comments

@TerryCavanagh
Copy link
Collaborator

Kind of a low priority thing, but the reason why a flash version of Zeedonk doesn't currently work is because this program:

trace(Random.int(0,10));

Will crash the flash player. Can't figure out why.

@TerryCavanagh
Copy link
Collaborator Author

Alright, tried both of these approaches:

interpreter.variables.set("Flashrandom", Flashrandom);

didn't work

interpreter.variables.set("Random", haxegon.Random);

didn't work.

In fact, Anyclass.int() seems to cause a crash. Changing int() to a different function name fixed it. I'd rather not rename Random.int(), but that would fix the problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant