Fix Flash Build

It seems like the current version doesn't build for flash due to a difference in the API (expected Array<UInt> instead of Array<Int>). I believe this pull request fixes the issue. Plaform-independent code would be better, but it seems like a difference in the exposed graphics API.