I have just moved from Flashdevelop. But I don't know how to fix missing methods #853
-
|
And this is the code query.removeAt(query.indexOf(block.name));Which should return a number from the block.name index. This is one of many other missing methods. I have been reading through the documents and I think I have done everything, step by step. So now I wonder, is it the config files or is it the extension that don't like these "outdated" methods? I have been reading some documents, and removeAt should exist: https://docs.ruffle.rs/en_US/FlashPlatform/reference/actionscript/3/Vector.html#removeAt() I have been using Flashdevelop before I joined this train. No errors that they are missing or doesn't exist. Using Flex SDK 4.6.0 . |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The vscode-as3mxml extension can definitely handle the newer You might need to use an updated playerglobal.swc in your Flex SDK. It appears that Flex SDK 4.6.0 comes with frameworks/libs/player/11.1/playerglobal.swc. I think that the new You can find an official link to playerglobal.swc for Flash Player 32.0 here: https://gist.github.com/joshtynjala/633fbaca5733a889da31498bdbf45dd6 You should copy it to frameworks/libs/player/32.0/playerglobal.swc. You may also need to set a couple of compiler options in your asconfig.json file. Set More info about swf-version: https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/swf%E2%80%90version-compiler-option |
Beta Was this translation helpful? Give feedback.
The vscode-as3mxml extension can definitely handle the newer
removeAt()andinsertAt()methods added to theVectorclass.You might need to use an updated playerglobal.swc in your Flex SDK. It appears that Flex SDK 4.6.0 comes with frameworks/libs/player/11.1/playerglobal.swc. I think that the new
Vectormethods were added several versions after 11.1.You can find an official link to playerglobal.swc for Flash Player 32.0 here:
https://gist.github.com/joshtynjala/633fbaca5733a889da31498bdbf45dd6
You should copy it to frameworks/libs/player/32.0/playerglobal.swc.
You may also need to set a couple of compiler options in your asconfig.json file. Set
target-playerto"32.0", and setswf-version…