Skip to main content
Participant
April 18, 2015
Question

Fixing filepath?

  • April 18, 2015
  • 1 reply
  • 251 views

I keep getting an error 1138: incorrect number of arguments. Expected 0.

My project was merged with two others, so all my symbols were placed in a folder within the library. Same thing happened to all my classes I wrote in flash develop, all in a new folders. Also, I got the short end of the stick and had to rename half my symbols and classes because they were the same as the other two project's symbols. Now whenever I run my project I get that error because it's now using MovieClip's default constructor instead of mine. It keeps automatically sticking the MovieClip class library in for the base class of all my symbols instead of leaving it empty. It just can't find the class I wrote for it anymore. So how can I fix the file path that all ready exists?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 18, 2015

click file>publish settings>swf>and tick 'permit debugging'.   retest.

the error message will allow you to pinpoint your error.  Debugging ActionScript 3.0 Errors, http://forums.adobe.com/docs/DOC-2542;

toast9Author
Participant
April 18, 2015

That's not helpful. I already know what, where, and why the error is happening, but that error is only occurring because of another problem as I originally stated. It's using the wrong constructor because it cannot find the class linked to the symbol.

kglad
Community Expert
Community Expert
April 18, 2015

you (and the other coders) should all be using a reverse domain name for your class files so you have no class/name conflicts.  fix that.