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

Error #1069?

New Here ,
Jun 12, 2013 Jun 12, 2013

I recently opened my Flash Project and i got this error:

ReferenceError: Error #1069: Property borders not found on classes.World and there is no default value.

    at classes::Player()

    at SimplyHuman_fla::MainTimeline/setUp()

    at SimplyHuman_fla::MainTimeline/frame5()

    at flash.display::MovieClip/gotoAndStop()

    at SimplyHuman_fla::MainTimeline/newGame()

Which has never happened before and i've not altered any of the code.

The Player Classes part in Debug it is singling out is this:

public function Player(X:int,Y:int):void

        {

            // keep centered

            this.x = X;

            this.y = Y;

            // add player to collision list with the borders

           myCollisionList = new CollisionList(world.borders);

            myCollisionList.addItem(this);

            // set the shot cool down;

            shotCooldown = MAX_COOLDOWN;

            // check when player is added to stage

            addEventListener(Event.ADDED_TO_STAGE,init);

            addEventListener(Event.ENTER_FRAME,updates);

        }

And, Its also referencing to this aswell in the main timeline

world = new classes.World();

inv = new classes.Inventory();

player = new classes.Player(400,240);

stage.addChildAt(world,0);

stage.addChildAt(player,1);

stage.addChildAt(Health,2);

I don't know what to do, Please can someone help me?

TOPICS
ActionScript
916
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

correct answers 1 Correct answer

Contributor , Jun 12, 2013 Jun 12, 2013

Isn't that code:

myCollisionList = new CollisionList(world.border);

instead of:

myCollisionList = new CollisionList(world.borders);

maybe??

Translate
Contributor ,
Jun 12, 2013 Jun 12, 2013

It is pointing you to this line of your code:

world = new classes.World();

...

myCollisionList = new CollisionList(world.borders);

Can you check if maybe this Item is suddenly deleted from your library ? (World)

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
New Here ,
Jun 12, 2013 Jun 12, 2013

It is still in my library and i have linked up to the class:

Untitled.png

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
Contributor ,
Jun 12, 2013 Jun 12, 2013

Isn't that code:

myCollisionList = new CollisionList(world.border);

instead of:

myCollisionList = new CollisionList(world.borders);

maybe??

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
New Here ,
Jun 12, 2013 Jun 12, 2013

Thank you so much, I looked at the world movieclip and it seems somehow the movieclip was broken so i just replaced it and it works now 

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
Contributor ,
Jun 12, 2013 Jun 12, 2013
LATEST

I am Glad it is solved. welcome

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