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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -