Copy link to clipboard
Copied
So I was doing some simple Timeline Navigation for a flash website, programming buttons to go to and play/stop etc. Something I do all the time. And everytime I rendered the file I get this error:
1026: Constructor functions must be instance methods.
I thought maybe I had messed something up with my actionscript that I wasn't noticing so I deleted it all to start again but when I rendered it out again I got the same error, even though at that time the only code I had at all was a couple stop commands. I tried removing the stop commands out of curiosity and I STILL get that same error. It's telling me there's a problem with my actionscript even though I don't have any actionscript.
Any ideas what the problem might be?
I tried googling it and the only thing I could find that might apply to me was that if I had an instance name or symbol name that was the same as a function command, but I went through and checked and there's nothing that I think would be used in actionscript. To be extra safe I changed all the names anyway and still got the same error.
What could this be?!
Copy link to clipboard
Copied
remove the document class.
Copy link to clipboard
Copied
I'm not actually sure what you mean by that. Like I said there is literally no actionscript left in the file anymore.
Copy link to clipboard
Copied
click an empty part of the stage and attach a screenshot of the properties panel that shows nothing is listed as the document class.
also, attach a screenshot of your library that shows you have no custom classes assigned for any of your symbols.
Copy link to clipboard
Copied
not sure...may be the problem with class construction,
this method should not have any arguments or perameters.
Copy link to clipboard
Copied
any class (except the document class) can have arguments/parameters.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now