color runtime error

Asked by Paul Milham

I'm trying to use jeash in a simple program I wrote instead of neash and canvas-nme. I can get the code to compile with this in my compile.hxml:

-js CrossDraw.js
-main CrossDraw
-cp /usr/lib/haxe/lib/jeash
--remap flash:jeash

However, when I try and run the web page, I get a runtime error that doesn't seem to be connected with any of the code in my program. "Uncaught Cannot parse color ''." Am I compiling/using the library incorrectly, or is it still in an incomplete state?

Thanks,
Paul

Question information

Language:
English Edit question
Status:
Solved
For:
jeash Edit question
Assignee:
No assignee Edit question
Solved by:
Niel Drummond
Solved:
Last query:
Last reply:
Revision history for this message
Best Niel Drummond (niel-drummond) said :
#1

Hello Paul,

thanks for testing Jeash.

I have found the bug related to this error - it is due to some new code that attempts to read the backgroundColor attribute on the canvas tag. I've committed a fix to this on the Jeash repository, you can update to the latest or alternatively set the background-color style on your canvas tag:

<canvas style="background-color:#fff"></canvas>

Revision history for this message
Paul Milham (domreinalabaster) said :
#2

Thanks Niel Drummond, that solved my question.