1 Reply Latest reply on Nov 13, 2011 4:41 AM by Robin_O

    MySQL Results to array


      Hey all,


      i'm trying to build a simple Quiz. I've installed the latest WAMP and created a DB called quiz with a table called questions.

      This table contains

      • id
      • question


      I've created a dataservice (QuestionsService) and removed all queries except the "count" and "getAllQuestions" which i've edit so that only the id's return. The test worked perfectly and now i'm trying to put the results in an array. But i don't know how and can't find an example in google. Can you please show me how to do this?

      This is what i've got so far...


      private var myQuestions:ArrayCollection = new ArrayCollection;



      protected function getAllQuestionsResult_resultHandler(event:ResultEvent):void


           myQuestions = event.result as ArrayCollection;