Closed hydroper closed 1 month ago
as3mxml-vscode's cod intelligence doesn't necessarily use the same compiler that gets called by asconfigc, so that's why you see it succeed with asconfigc, but see an error in VSCode. It appears that vscode-as3mxml doesn't know how to find the avm2.intrinsics
package. I would have assumed that it's defined in playerglobal.swc (or another .swc) in the SDK, but perhaps not. Maybe Adobe's ASC 2.0 compiler hard-codes these functions. If that's the case, then the Royale compiler used by vscode-as3mxml would need to be modified to support them.
Regardless, it is safe to ignore the error for now, since asconfigc compiles successfully.
Errors such as:
occur using the
avm2.intrinsics
package. But the project compiles fine withasconfigc
; any idea?Here's my
asconfigc.json
: