Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Flash Quiz help.

    Hi guys, I am doing a Flash quiz. This quiz will get the questions and answers from MySQL using php. I am wondering how I am going to do this? I have been reading about loadVars and the like but I have not seen an exact example of how it can apply to my case of a quiz with a question and 4 answers.

    Regards,
    Jon

    P.S. By the way, I am asking about the connection from flash to mysql using php. I have already done the database and have a sample quiz interface ready.

  • #2
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what are flash quiz?




    Lutron Lighting Control New York

  • #3
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The quiz is like a simple question with 4 answers to it. Anybody can help?

  • #4
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    var variables:URLVariables = new URLVariables();
    var varSend:URLRequest = new URLRequest("http://www.singaporeans.com/mp05/database2/PopulateQns.php");
    varSend.method = URLRequestMethod.GET;
    varSend.data = variables;

    var varLoader:URLLoader = new URLLoader;
    varLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    varLoader.addEventListener(Event.COMPLETE, completeHandler);


    varLoader.load(varSend);

    function completeHandler(event:Event):void{
    var phpVar1 = event.target.data.qname;
    question.text = phpVar1;



    I am using this code, the error I am getting now is that the text cannot be null. Meaning that the value that is getting pulled is null. Need help.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •