1180: Call to a possibly undefined method arrays












0















Greeting,
I just started to learn scripting and am trying to make a memory game for a school project. I have been able to solve most of the issues myself but now I stumbled a ERROR i can't fix :/




1180: Call to a possibly undefined method arrays on line 80, in the
Function setupGame() the cardValues = new arrays();




package {
import flash.display.*;
import flash.events.*;
import flash.ui.*;

public class Memory extends MovieClip
{
private var score, life:Number;
private var doLoseLife, gotoWin, gotoLose:Boolean;
private var firstCard, secondCard:Card;
private var cardValues, cards:Array;

public function Memory()
{

}

//All Start Functions
public function startMenu()
{
stop();
btnStartGame.addEventListener(MouseEvent.CLICK, gotoStartGame);
btnHowToPlay.addEventListener(MouseEvent.CLICK, gotoHowToPlay);
}

public function startHowToPlay()
{
btnBack.addEventListener(MouseEvent.CLICK, gotoMenu);
}

public function startWin()
{
btnBack.addEventListener(MouseEvent.CLICK, gotoMenu);
}

public function startLose()
{
btnBack.addEventListener(MouseEvent.CLICK, gotoMenu);
}

public function startGame()
{
score = 0;
life = 10;
doLoseLife = false;
gotoWin = false;
gotoLose = false;
firstCard = null;
secondCard = null;
cards = new Array();

setupGame();

//Shuffle
cardValues = new Array();
for (var i=0; i<100; i++)
{
var swap1 = Math.floor(Math.random()*14);
var swap2 = Math.floor(Math.random()*14);

var tempValue = cardValues[swap1];
cardValues[swap1] = cardValues[swap2];
cardValues[swap2] = tempValue;
}

//Deal
for (var j=0; j<cardValues.length; j++)
{
cards[j].hiddenValue = cardValues[j];
cards[j].addEventListener(MouseEvent.CLICK, flipCard);
}

addEventListener(Event.ENTER_FRAME,update);

stage.focus = this;
}

private function setupGame()
{
cardValues = new arrays();
//Check the classes of the movieclips and push them into the
//appropriate arrays
for (var i=0; i< MovieClip(root).numChildren; i++)
{
var object = MovieClip(root).getChildAt(i);

if (object is Card)
{
cards.push(object);
}
cardValues.push("card"+(cardValues+length +1));
var m = cardValues.length +1;
cardValues.push("card"+m);
cardValues.push("card"+m);
}
}

private function gotoStartGame(evt:MouseEvent)
{
btnStartGame.removeEventListener(MouseEvent.CLICK, gotoStartGame);
btnHowToPlay.removeEventListener(MouseEvent.CLICK, gotoHowToPlay);
gotoAndStop("level1");
}

private function gotoHowToPlay(evt:MouseEvent)
{
btnStartGame.removeEventListener(MouseEvent.CLICK, gotoStartGame);
btnHowToPlay.removeEventListener(MouseEvent.CLICK, gotoHowToPlay);
gotoAndStop("howtoplay");
}

private function gotoMenu(evt:MouseEvent)
{
btnBack.removeEventListener(MouseEvent.CLICK, gotoMenu);
gotoAndStop("menu");
}

private function flipCard(evt:MouseEvent)
{
if (firstCard == null)
{
firstCard = evt.currentTarget as Card;
firstCard.gotoAndStop(firstCard.hiddenValue);
}
else if (secondCard == null)
{
if (firstCard == evt.currentTarget as Card)
return;

secondCard = evt.currentTarget as Card;
secondCard.gotoAndStop(secondCard.hiddenValue);

doLoseLife = true;
}
else
{
//this is the third card clicked,
//means the cards clicked do not match
//reset them
firstCard.gotoAndStop("back");
secondCard.gotoAndStop("back");
secondCard = null;

firstCard = evt.currentTarget as Card;
firstCard.gotoAndStop(firstCard.hiddenValue);
}
}

public function update(evt:Event)
{
handleUserInput();
handleGameLogic();
handleDraw();

if (gotoWin)
triggerGoToWin();
else if (gotoLose)
triggerGoToLose();
}

private function handleUserInput()
{

}

private function handleGameLogic()
{
if (firstCard != null && secondCard != null)
{
//check if same
if (firstCard.hiddenValue == secondCard.hiddenValue)
{
removeChild(firstCard);
removeChild(secondCard);

score += 10;

firstCard = null;
secondCard = null;
}
else if (doLoseLife)
{
life--; //considered as one attempt once both cards are flipped
doLoseLife = false;
}
}

if (currentLabel == "level1")
{
if (score >= 70)
{
gotoAndStop("level2")
}
}
else if (currentLabel == "level2")
{
if (score >= 150)
{
gotoAndStop("level3")
}
}
else if (currentLabel == "level3")
{
if (score >= 150)
{
gotoWin = true;
}
}
if (life <= 0)
{
gotoLose = true;
}
}

private function handleDraw()
{
//Handle display
txtScoreP1.text = String(score);
txtLife.text = String(life);
}

private function triggerGoToWin()
{
removeEventListener(Event.ENTER_FRAME, update);
gotoAndStop("win");
}

private function triggerGoToLose()
{
removeEventListener(Event.ENTER_FRAME, update);
gotoAndStop("lose");
}

//Misc Functions
private function resetGame()
{
for (var i in cards)
cards[i].gotoAndStop("back");
}
}
}









share|improve this question





























    0















    Greeting,
    I just started to learn scripting and am trying to make a memory game for a school project. I have been able to solve most of the issues myself but now I stumbled a ERROR i can't fix :/




    1180: Call to a possibly undefined method arrays on line 80, in the
    Function setupGame() the cardValues = new arrays();




    package {
    import flash.display.*;
    import flash.events.*;
    import flash.ui.*;

    public class Memory extends MovieClip
    {
    private var score, life:Number;
    private var doLoseLife, gotoWin, gotoLose:Boolean;
    private var firstCard, secondCard:Card;
    private var cardValues, cards:Array;

    public function Memory()
    {

    }

    //All Start Functions
    public function startMenu()
    {
    stop();
    btnStartGame.addEventListener(MouseEvent.CLICK, gotoStartGame);
    btnHowToPlay.addEventListener(MouseEvent.CLICK, gotoHowToPlay);
    }

    public function startHowToPlay()
    {
    btnBack.addEventListener(MouseEvent.CLICK, gotoMenu);
    }

    public function startWin()
    {
    btnBack.addEventListener(MouseEvent.CLICK, gotoMenu);
    }

    public function startLose()
    {
    btnBack.addEventListener(MouseEvent.CLICK, gotoMenu);
    }

    public function startGame()
    {
    score = 0;
    life = 10;
    doLoseLife = false;
    gotoWin = false;
    gotoLose = false;
    firstCard = null;
    secondCard = null;
    cards = new Array();

    setupGame();

    //Shuffle
    cardValues = new Array();
    for (var i=0; i<100; i++)
    {
    var swap1 = Math.floor(Math.random()*14);
    var swap2 = Math.floor(Math.random()*14);

    var tempValue = cardValues[swap1];
    cardValues[swap1] = cardValues[swap2];
    cardValues[swap2] = tempValue;
    }

    //Deal
    for (var j=0; j<cardValues.length; j++)
    {
    cards[j].hiddenValue = cardValues[j];
    cards[j].addEventListener(MouseEvent.CLICK, flipCard);
    }

    addEventListener(Event.ENTER_FRAME,update);

    stage.focus = this;
    }

    private function setupGame()
    {
    cardValues = new arrays();
    //Check the classes of the movieclips and push them into the
    //appropriate arrays
    for (var i=0; i< MovieClip(root).numChildren; i++)
    {
    var object = MovieClip(root).getChildAt(i);

    if (object is Card)
    {
    cards.push(object);
    }
    cardValues.push("card"+(cardValues+length +1));
    var m = cardValues.length +1;
    cardValues.push("card"+m);
    cardValues.push("card"+m);
    }
    }

    private function gotoStartGame(evt:MouseEvent)
    {
    btnStartGame.removeEventListener(MouseEvent.CLICK, gotoStartGame);
    btnHowToPlay.removeEventListener(MouseEvent.CLICK, gotoHowToPlay);
    gotoAndStop("level1");
    }

    private function gotoHowToPlay(evt:MouseEvent)
    {
    btnStartGame.removeEventListener(MouseEvent.CLICK, gotoStartGame);
    btnHowToPlay.removeEventListener(MouseEvent.CLICK, gotoHowToPlay);
    gotoAndStop("howtoplay");
    }

    private function gotoMenu(evt:MouseEvent)
    {
    btnBack.removeEventListener(MouseEvent.CLICK, gotoMenu);
    gotoAndStop("menu");
    }

    private function flipCard(evt:MouseEvent)
    {
    if (firstCard == null)
    {
    firstCard = evt.currentTarget as Card;
    firstCard.gotoAndStop(firstCard.hiddenValue);
    }
    else if (secondCard == null)
    {
    if (firstCard == evt.currentTarget as Card)
    return;

    secondCard = evt.currentTarget as Card;
    secondCard.gotoAndStop(secondCard.hiddenValue);

    doLoseLife = true;
    }
    else
    {
    //this is the third card clicked,
    //means the cards clicked do not match
    //reset them
    firstCard.gotoAndStop("back");
    secondCard.gotoAndStop("back");
    secondCard = null;

    firstCard = evt.currentTarget as Card;
    firstCard.gotoAndStop(firstCard.hiddenValue);
    }
    }

    public function update(evt:Event)
    {
    handleUserInput();
    handleGameLogic();
    handleDraw();

    if (gotoWin)
    triggerGoToWin();
    else if (gotoLose)
    triggerGoToLose();
    }

    private function handleUserInput()
    {

    }

    private function handleGameLogic()
    {
    if (firstCard != null && secondCard != null)
    {
    //check if same
    if (firstCard.hiddenValue == secondCard.hiddenValue)
    {
    removeChild(firstCard);
    removeChild(secondCard);

    score += 10;

    firstCard = null;
    secondCard = null;
    }
    else if (doLoseLife)
    {
    life--; //considered as one attempt once both cards are flipped
    doLoseLife = false;
    }
    }

    if (currentLabel == "level1")
    {
    if (score >= 70)
    {
    gotoAndStop("level2")
    }
    }
    else if (currentLabel == "level2")
    {
    if (score >= 150)
    {
    gotoAndStop("level3")
    }
    }
    else if (currentLabel == "level3")
    {
    if (score >= 150)
    {
    gotoWin = true;
    }
    }
    if (life <= 0)
    {
    gotoLose = true;
    }
    }

    private function handleDraw()
    {
    //Handle display
    txtScoreP1.text = String(score);
    txtLife.text = String(life);
    }

    private function triggerGoToWin()
    {
    removeEventListener(Event.ENTER_FRAME, update);
    gotoAndStop("win");
    }

    private function triggerGoToLose()
    {
    removeEventListener(Event.ENTER_FRAME, update);
    gotoAndStop("lose");
    }

    //Misc Functions
    private function resetGame()
    {
    for (var i in cards)
    cards[i].gotoAndStop("back");
    }
    }
    }









    share|improve this question



























      0












      0








      0








      Greeting,
      I just started to learn scripting and am trying to make a memory game for a school project. I have been able to solve most of the issues myself but now I stumbled a ERROR i can't fix :/




      1180: Call to a possibly undefined method arrays on line 80, in the
      Function setupGame() the cardValues = new arrays();




      package {
      import flash.display.*;
      import flash.events.*;
      import flash.ui.*;

      public class Memory extends MovieClip
      {
      private var score, life:Number;
      private var doLoseLife, gotoWin, gotoLose:Boolean;
      private var firstCard, secondCard:Card;
      private var cardValues, cards:Array;

      public function Memory()
      {

      }

      //All Start Functions
      public function startMenu()
      {
      stop();
      btnStartGame.addEventListener(MouseEvent.CLICK, gotoStartGame);
      btnHowToPlay.addEventListener(MouseEvent.CLICK, gotoHowToPlay);
      }

      public function startHowToPlay()
      {
      btnBack.addEventListener(MouseEvent.CLICK, gotoMenu);
      }

      public function startWin()
      {
      btnBack.addEventListener(MouseEvent.CLICK, gotoMenu);
      }

      public function startLose()
      {
      btnBack.addEventListener(MouseEvent.CLICK, gotoMenu);
      }

      public function startGame()
      {
      score = 0;
      life = 10;
      doLoseLife = false;
      gotoWin = false;
      gotoLose = false;
      firstCard = null;
      secondCard = null;
      cards = new Array();

      setupGame();

      //Shuffle
      cardValues = new Array();
      for (var i=0; i<100; i++)
      {
      var swap1 = Math.floor(Math.random()*14);
      var swap2 = Math.floor(Math.random()*14);

      var tempValue = cardValues[swap1];
      cardValues[swap1] = cardValues[swap2];
      cardValues[swap2] = tempValue;
      }

      //Deal
      for (var j=0; j<cardValues.length; j++)
      {
      cards[j].hiddenValue = cardValues[j];
      cards[j].addEventListener(MouseEvent.CLICK, flipCard);
      }

      addEventListener(Event.ENTER_FRAME,update);

      stage.focus = this;
      }

      private function setupGame()
      {
      cardValues = new arrays();
      //Check the classes of the movieclips and push them into the
      //appropriate arrays
      for (var i=0; i< MovieClip(root).numChildren; i++)
      {
      var object = MovieClip(root).getChildAt(i);

      if (object is Card)
      {
      cards.push(object);
      }
      cardValues.push("card"+(cardValues+length +1));
      var m = cardValues.length +1;
      cardValues.push("card"+m);
      cardValues.push("card"+m);
      }
      }

      private function gotoStartGame(evt:MouseEvent)
      {
      btnStartGame.removeEventListener(MouseEvent.CLICK, gotoStartGame);
      btnHowToPlay.removeEventListener(MouseEvent.CLICK, gotoHowToPlay);
      gotoAndStop("level1");
      }

      private function gotoHowToPlay(evt:MouseEvent)
      {
      btnStartGame.removeEventListener(MouseEvent.CLICK, gotoStartGame);
      btnHowToPlay.removeEventListener(MouseEvent.CLICK, gotoHowToPlay);
      gotoAndStop("howtoplay");
      }

      private function gotoMenu(evt:MouseEvent)
      {
      btnBack.removeEventListener(MouseEvent.CLICK, gotoMenu);
      gotoAndStop("menu");
      }

      private function flipCard(evt:MouseEvent)
      {
      if (firstCard == null)
      {
      firstCard = evt.currentTarget as Card;
      firstCard.gotoAndStop(firstCard.hiddenValue);
      }
      else if (secondCard == null)
      {
      if (firstCard == evt.currentTarget as Card)
      return;

      secondCard = evt.currentTarget as Card;
      secondCard.gotoAndStop(secondCard.hiddenValue);

      doLoseLife = true;
      }
      else
      {
      //this is the third card clicked,
      //means the cards clicked do not match
      //reset them
      firstCard.gotoAndStop("back");
      secondCard.gotoAndStop("back");
      secondCard = null;

      firstCard = evt.currentTarget as Card;
      firstCard.gotoAndStop(firstCard.hiddenValue);
      }
      }

      public function update(evt:Event)
      {
      handleUserInput();
      handleGameLogic();
      handleDraw();

      if (gotoWin)
      triggerGoToWin();
      else if (gotoLose)
      triggerGoToLose();
      }

      private function handleUserInput()
      {

      }

      private function handleGameLogic()
      {
      if (firstCard != null && secondCard != null)
      {
      //check if same
      if (firstCard.hiddenValue == secondCard.hiddenValue)
      {
      removeChild(firstCard);
      removeChild(secondCard);

      score += 10;

      firstCard = null;
      secondCard = null;
      }
      else if (doLoseLife)
      {
      life--; //considered as one attempt once both cards are flipped
      doLoseLife = false;
      }
      }

      if (currentLabel == "level1")
      {
      if (score >= 70)
      {
      gotoAndStop("level2")
      }
      }
      else if (currentLabel == "level2")
      {
      if (score >= 150)
      {
      gotoAndStop("level3")
      }
      }
      else if (currentLabel == "level3")
      {
      if (score >= 150)
      {
      gotoWin = true;
      }
      }
      if (life <= 0)
      {
      gotoLose = true;
      }
      }

      private function handleDraw()
      {
      //Handle display
      txtScoreP1.text = String(score);
      txtLife.text = String(life);
      }

      private function triggerGoToWin()
      {
      removeEventListener(Event.ENTER_FRAME, update);
      gotoAndStop("win");
      }

      private function triggerGoToLose()
      {
      removeEventListener(Event.ENTER_FRAME, update);
      gotoAndStop("lose");
      }

      //Misc Functions
      private function resetGame()
      {
      for (var i in cards)
      cards[i].gotoAndStop("back");
      }
      }
      }









      share|improve this question
















      Greeting,
      I just started to learn scripting and am trying to make a memory game for a school project. I have been able to solve most of the issues myself but now I stumbled a ERROR i can't fix :/




      1180: Call to a possibly undefined method arrays on line 80, in the
      Function setupGame() the cardValues = new arrays();




      package {
      import flash.display.*;
      import flash.events.*;
      import flash.ui.*;

      public class Memory extends MovieClip
      {
      private var score, life:Number;
      private var doLoseLife, gotoWin, gotoLose:Boolean;
      private var firstCard, secondCard:Card;
      private var cardValues, cards:Array;

      public function Memory()
      {

      }

      //All Start Functions
      public function startMenu()
      {
      stop();
      btnStartGame.addEventListener(MouseEvent.CLICK, gotoStartGame);
      btnHowToPlay.addEventListener(MouseEvent.CLICK, gotoHowToPlay);
      }

      public function startHowToPlay()
      {
      btnBack.addEventListener(MouseEvent.CLICK, gotoMenu);
      }

      public function startWin()
      {
      btnBack.addEventListener(MouseEvent.CLICK, gotoMenu);
      }

      public function startLose()
      {
      btnBack.addEventListener(MouseEvent.CLICK, gotoMenu);
      }

      public function startGame()
      {
      score = 0;
      life = 10;
      doLoseLife = false;
      gotoWin = false;
      gotoLose = false;
      firstCard = null;
      secondCard = null;
      cards = new Array();

      setupGame();

      //Shuffle
      cardValues = new Array();
      for (var i=0; i<100; i++)
      {
      var swap1 = Math.floor(Math.random()*14);
      var swap2 = Math.floor(Math.random()*14);

      var tempValue = cardValues[swap1];
      cardValues[swap1] = cardValues[swap2];
      cardValues[swap2] = tempValue;
      }

      //Deal
      for (var j=0; j<cardValues.length; j++)
      {
      cards[j].hiddenValue = cardValues[j];
      cards[j].addEventListener(MouseEvent.CLICK, flipCard);
      }

      addEventListener(Event.ENTER_FRAME,update);

      stage.focus = this;
      }

      private function setupGame()
      {
      cardValues = new arrays();
      //Check the classes of the movieclips and push them into the
      //appropriate arrays
      for (var i=0; i< MovieClip(root).numChildren; i++)
      {
      var object = MovieClip(root).getChildAt(i);

      if (object is Card)
      {
      cards.push(object);
      }
      cardValues.push("card"+(cardValues+length +1));
      var m = cardValues.length +1;
      cardValues.push("card"+m);
      cardValues.push("card"+m);
      }
      }

      private function gotoStartGame(evt:MouseEvent)
      {
      btnStartGame.removeEventListener(MouseEvent.CLICK, gotoStartGame);
      btnHowToPlay.removeEventListener(MouseEvent.CLICK, gotoHowToPlay);
      gotoAndStop("level1");
      }

      private function gotoHowToPlay(evt:MouseEvent)
      {
      btnStartGame.removeEventListener(MouseEvent.CLICK, gotoStartGame);
      btnHowToPlay.removeEventListener(MouseEvent.CLICK, gotoHowToPlay);
      gotoAndStop("howtoplay");
      }

      private function gotoMenu(evt:MouseEvent)
      {
      btnBack.removeEventListener(MouseEvent.CLICK, gotoMenu);
      gotoAndStop("menu");
      }

      private function flipCard(evt:MouseEvent)
      {
      if (firstCard == null)
      {
      firstCard = evt.currentTarget as Card;
      firstCard.gotoAndStop(firstCard.hiddenValue);
      }
      else if (secondCard == null)
      {
      if (firstCard == evt.currentTarget as Card)
      return;

      secondCard = evt.currentTarget as Card;
      secondCard.gotoAndStop(secondCard.hiddenValue);

      doLoseLife = true;
      }
      else
      {
      //this is the third card clicked,
      //means the cards clicked do not match
      //reset them
      firstCard.gotoAndStop("back");
      secondCard.gotoAndStop("back");
      secondCard = null;

      firstCard = evt.currentTarget as Card;
      firstCard.gotoAndStop(firstCard.hiddenValue);
      }
      }

      public function update(evt:Event)
      {
      handleUserInput();
      handleGameLogic();
      handleDraw();

      if (gotoWin)
      triggerGoToWin();
      else if (gotoLose)
      triggerGoToLose();
      }

      private function handleUserInput()
      {

      }

      private function handleGameLogic()
      {
      if (firstCard != null && secondCard != null)
      {
      //check if same
      if (firstCard.hiddenValue == secondCard.hiddenValue)
      {
      removeChild(firstCard);
      removeChild(secondCard);

      score += 10;

      firstCard = null;
      secondCard = null;
      }
      else if (doLoseLife)
      {
      life--; //considered as one attempt once both cards are flipped
      doLoseLife = false;
      }
      }

      if (currentLabel == "level1")
      {
      if (score >= 70)
      {
      gotoAndStop("level2")
      }
      }
      else if (currentLabel == "level2")
      {
      if (score >= 150)
      {
      gotoAndStop("level3")
      }
      }
      else if (currentLabel == "level3")
      {
      if (score >= 150)
      {
      gotoWin = true;
      }
      }
      if (life <= 0)
      {
      gotoLose = true;
      }
      }

      private function handleDraw()
      {
      //Handle display
      txtScoreP1.text = String(score);
      txtLife.text = String(life);
      }

      private function triggerGoToWin()
      {
      removeEventListener(Event.ENTER_FRAME, update);
      gotoAndStop("win");
      }

      private function triggerGoToLose()
      {
      removeEventListener(Event.ENTER_FRAME, update);
      gotoAndStop("lose");
      }

      //Misc Functions
      private function resetGame()
      {
      for (var i in cards)
      cards[i].gotoAndStop("back");
      }
      }
      }






      arrays actionscript-3 memory methods flash-cs6






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 13 '18 at 2:46









      Al Fahad

      725821




      725821










      asked Mar 23 '14 at 17:46









      InfandumInfandum

      31




      31
























          1 Answer
          1






          active

          oldest

          votes


















          0














          arrays is not a class, you probably wanted to create an Array.



          See your error actually tells you everything you need to know:



          1180: Call to a possibly udefined method arrays on line 80


          Says that you are trying to call a not existing method which is called arrays on line 80. I don't understand why people fear the errors and warnings of the compilers, they meant to help you, you just got to understand english.

          If you don't understand the error, then there is the error code, search for the error code on google and you will find a solution. :)






          share|improve this answer
























          • ah yeah stupid mistake from me

            – Infandum
            Mar 23 '14 at 21:23











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f22594610%2f1180-call-to-a-possibly-undefined-method-arrays%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          arrays is not a class, you probably wanted to create an Array.



          See your error actually tells you everything you need to know:



          1180: Call to a possibly udefined method arrays on line 80


          Says that you are trying to call a not existing method which is called arrays on line 80. I don't understand why people fear the errors and warnings of the compilers, they meant to help you, you just got to understand english.

          If you don't understand the error, then there is the error code, search for the error code on google and you will find a solution. :)






          share|improve this answer
























          • ah yeah stupid mistake from me

            – Infandum
            Mar 23 '14 at 21:23
















          0














          arrays is not a class, you probably wanted to create an Array.



          See your error actually tells you everything you need to know:



          1180: Call to a possibly udefined method arrays on line 80


          Says that you are trying to call a not existing method which is called arrays on line 80. I don't understand why people fear the errors and warnings of the compilers, they meant to help you, you just got to understand english.

          If you don't understand the error, then there is the error code, search for the error code on google and you will find a solution. :)






          share|improve this answer
























          • ah yeah stupid mistake from me

            – Infandum
            Mar 23 '14 at 21:23














          0












          0








          0







          arrays is not a class, you probably wanted to create an Array.



          See your error actually tells you everything you need to know:



          1180: Call to a possibly udefined method arrays on line 80


          Says that you are trying to call a not existing method which is called arrays on line 80. I don't understand why people fear the errors and warnings of the compilers, they meant to help you, you just got to understand english.

          If you don't understand the error, then there is the error code, search for the error code on google and you will find a solution. :)






          share|improve this answer













          arrays is not a class, you probably wanted to create an Array.



          See your error actually tells you everything you need to know:



          1180: Call to a possibly udefined method arrays on line 80


          Says that you are trying to call a not existing method which is called arrays on line 80. I don't understand why people fear the errors and warnings of the compilers, they meant to help you, you just got to understand english.

          If you don't understand the error, then there is the error code, search for the error code on google and you will find a solution. :)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 23 '14 at 17:50









          ZhafurZhafur

          1,51311130




          1,51311130













          • ah yeah stupid mistake from me

            – Infandum
            Mar 23 '14 at 21:23



















          • ah yeah stupid mistake from me

            – Infandum
            Mar 23 '14 at 21:23

















          ah yeah stupid mistake from me

          – Infandum
          Mar 23 '14 at 21:23





          ah yeah stupid mistake from me

          – Infandum
          Mar 23 '14 at 21:23


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f22594610%2f1180-call-to-a-possibly-undefined-method-arrays%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Florida Star v. B. J. F.

          Error while running script in elastic search , gateway timeout

          Adding quotations to stringified JSON object values