Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration option to define Adobe Animate library symbols with generated linkage #456

Open
bls1999 opened this issue Mar 6, 2020 · 7 comments

Comments

@bls1999
Copy link

bls1999 commented Mar 6, 2020

I have graphics with AS3 linkage that don't have any corresponding AS3 files (the linkage is assigned in the .fla project and the files are generated automatically when the SWF is compiled). As a result, the program throws a problem to the problems list with this message:

Type was not found or was not a compile-time constant: NameOfGraphic.(1046)

Is there a way to specify which project files are generated automatically by flash in order to mute these errors? Maybe in the config file?

@joshtynjala
Copy link
Member

You will need to create the appropriate .as file for each of your library symbols with AS3 linkage. There's no way for VSCode to know that something is automatically generated by Animate, so you need to do it manually instead. It can probably be as basic as this:

package {
    import flash.display.MovieClip; //or Sprite, if you prefer
    public dynamic class NameOfGraphic extends MovieClip {}
}

@bls1999
Copy link
Author

bls1999 commented Mar 6, 2020 via email

@joshtynjala joshtynjala changed the title Error #1046 on AS files generated during compilation Error #1046 on AS files generated during Adobe Animate compilation Mar 6, 2020
@joshtynjala
Copy link
Member

It's something that I can look into, but I'm not sure that it's possible.

@bls1999
Copy link
Author

bls1999 commented Mar 6, 2020 via email

@joshtynjala joshtynjala changed the title Error #1046 on AS files generated during Adobe Animate compilation Configuration option to define Adobe Animate library symbols with generated linkage Mar 20, 2020
@leuraupp2
Copy link

This feature is about to work? I need this feature too, cause i have so many generated linkage.

@joshtynjala
Copy link
Member

This feature is not planned because there is no way to get the linkage names from Animate.

@leuraupp2
Copy link

This feature is not planned because there is no way to get the linkage names from Animate.

Ok, thanks 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants