A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Array PHP into Flash

Threaded View

  1. #1
    Junior Member
    Join Date
    Jun 2010
    Posts
    4

    Array PHP into Flash

    Hi all, I am making a site in php, however the header and menu is all made in flash, its a hybrid site u could say.

    Links and text the menu (flash) must be read from the php file, my question is how to make flash as2 to read this array in php, what to write on each button and where to refer.

    Thanks. =]


    PHP Code:
    get Object 

        [
    query] => Array 
            ( 
            ) 

        [
    pages] => Array 
            ( 
                [
    0] => Array 
                    ( 
                        [
    id] => 
                        
    [language_id] => 
                        
    [menu] => Home 
                    


                [
    1] => Array 
                    ( 
                        [
    id] => 
                        
    [language_id] => 
                        
    [menu] => Products 
                    


             ) 

        [
    c_page] => Array 
            ( 
                [
    id] => 
                
    [language_id] => 
                
    [menu] => %CD%E0%F7%E0%EB%EE 
            




    I thing the action script 2 code maybe you should look like:


    var testLoadVars = new LoadVars();

    testLoadVars.onLoad = function(success){

    if(success){
    trace(testLoadVars.var1);
    trace(testLoadVars.var2);
    }
    else
    trace("error");
    }
    testLoadVars.sendAndLoad("http://localhost/filename.php",testLoadVars,"POST");

    }
    Last edited by wopsreg; 06-25-2010 at 02:24 PM.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center