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
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);
}
Copy link to clipboard
Copied
Anyone???