I’ld like to use an external .AS in my project.
How do I need to link to it to make it work? I always get this error:
1180: Call to a possibly undefined method Stats.
This is the .AS file:
– https://raw.github.com/mrdoob/Hi-ReS-Stats/master/src/net/hires/debug/Stats.as
– https://github.com/mrdoob/Hi-ReS-Stats
Thanks.
In general, the Flash Player only executes SWF files (compiled binary files). This is unlike JavaScript where the engine can dynamically load and execute source during runtime.
AS3 code must be compiled before-hand; this means you’ll need all your source locally, or somehow accesible to the compiler so that it can produce the SWF.