Creating AsDoc I keep getting "Error: Type was not found or was not a compile-time constant: "

StackOverflow https://stackoverflow.com/questions/16566007

  •  29-05-2022
  •  | 
  •  

Question

I'm trying to create AsDoc with Flash Develop tool :/. It keeps giving me this error.

col: 41 Error: Type was not found or was not a compile-time constant: antenaCoupler.
    public function AntennaKeyPad(v:antenaCoupler, m:AntennaCouplerModel, c:AntennaCouplerController) 

It seems to be pointing at v:antenaCoupler. I know that's spelled wrong but that's what the symbol is in the swc. The application compiles fine to a swf. I've been looking around but haven't found anything satisfying yet. Any help or direction would be appreciated.

Was it helpful?

Solution

You need to change your settings to include the SWC location.

-library-path C:\somefolder\myprojectlibs

OTHER TIPS

ASDocs will error out on anything that it does not understand. I have no idea what an antenaCoupler is, but try this instead

public function AntennaKeyPad(v:*, m:AntennaCouplerModel, c:AntennaCouplerController)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top