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

Help Error #1063

New Here ,
Jan 03, 2014 Jan 03, 2014

I get this error:

ArgumentError: Error #1063: Argument count mismatch on ShipMc(). Expected 1, got 0.

    at flash.display::Sprite/constructChildren()

    at flash.display::Sprite()

    at flash.display::MovieClip()

    at Main()

This is the main Class:

public function Main() {

            ship = new ShipMc(this.stage);//create a new ship

            //in ShipMc we need stage to create the keyObject

            this.addChild(ship);//add ship to stage

TOPICS
ActionScript
382
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
LEGEND ,
Jan 03, 2014 Jan 03, 2014
LATEST

Try tracing this.stage and see what you have for it.  It probably hasn't yet had time to come into existence by the time you are trying to target it.

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