I made a class so that I can cut some from a class and store the extra code in this new class
package {
public class mainSetup extends Main{
public function mainSetup() {
trace("I extend the main class");
}
}
}
But when I call the function inside my main class, I get the error, incorrect number of arguments, expected 1. Not sure how to fix this.
package {
import flash.display.MovieClip;
public class Main extends MovieClip{
public function mainSetup() {
mainSetup();
}
}
}