I use Haxe to target Javascript.
I have a package (defined as extern), " phaser ", which contains the Math class and many others. I am using import phaser.*; at the beginning of my files, because I use many classes from this package, and I do not want to prefix them all with phaser. .
I would like to use the Math class from the Haxe API , but if I try to use it (for example, Math.random() ), the compiler thinks I want to use phaser.Math and tells me that it does not have such a function.
Is it possible to explicitly write that I want to use the Haxe Math class, not phaser.Math ?
I tried haxe.Math but no luck ...
Thank you in advance
Yannp source share