A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: convert PHP button to Flash.

Threaded View

  1. #7
    Junior Member
    Join Date
    Feb 2013
    Posts
    6
    okay i did some research and I came up with this code:

    PHP Code:
    var submitListener:Object = new Object();
    submitListener.click = function(evt:Object) {
      
        var 
    send_lv:LoadVars = new LoadVars();
         
    send_lv.product_id "2";
        
    send_lv.module_id "130";
        
    send_lv.add "1";
        
    send_lv.ctrl "product";
        
    send_lv.task "updatecart";
        
    send_lv.sendAndLoad("http://katalogs.net84.net/index.php/sample-sites-2/product/updatecart"result_lv"POST");
    };

    submit_button.addEventListener("click"submitListener); 
    I putted it on 1. layer, made simple button with instance name "submit_button", but when I test my scene, nothing happens, when I click on button, even when I upload it to my homepage.

    fruitbeard - I talked to my professor, he said that cURL isn't option, and said to use LoadAndSend function, but he's bussy man so i don't want to disturb him with my problems.
    Last edited by kapis555; 02-23-2013 at 03:22 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