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

MySQL Results to array

New Here ,
Nov 09, 2011 Nov 09, 2011

Copy link to clipboard

Copied

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;

     trace(myQuestions);

}

Views

372

Translate

Translate

Report

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 ,
Nov 13, 2011 Nov 13, 2011

Copy link to clipboard

Copied

LATEST

Anyone???

Votes

Translate

Translate

Report

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