actionscript - Error: incorrect number of arguments expected 1 -
can please me understand wrong code?
public function main { var _myscreens:screens = new screens(); this.addchild(_myscreens); }
after compilation, error
error: incorrect number of arguments expected 1
probably screens class needs 1 argument passed on creation of new screens object.
also should have:
public function main() { ... }
Comments
Post a Comment