Skip to main content
Participant
June 12, 2013
Answered

Error #1069?

  • June 12, 2013
  • 1 reply
  • 999 views

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?

This topic has been closed for replies.
Correct answer Pouradam

Isn't that code:

myCollisionList = new CollisionList(world.border);

instead of:

myCollisionList = new CollisionList(world.borders);

maybe??

1 reply

Pouradam
Inspiring
June 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)

TCipherAuthor
Participant
June 12, 2013

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

Pouradam
Inspiring
June 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 


I am Glad it is solved. welcome