Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Weird Action Script Error

Explorer ,
May 08, 2013 May 08, 2013

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?!

TOPICS
ActionScript
977
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 08, 2013 May 08, 2013

remove the document class.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 15, 2013 May 15, 2013

I'm not actually sure what you mean by that.  Like I said there is literally no actionscript left in the file anymore.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 15, 2013 May 15, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 15, 2013 May 15, 2013

not sure...may be the problem with class construction,

this method should not have any arguments or perameters.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 16, 2013 May 16, 2013
LATEST

any class (except the document class) can have arguments/parameters.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines