A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Php Form

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Posts
    25

    Php Form

    Hi, i want to create a flash with 3 buttons that when i click on each the same page that the flash is on will be reloaded and a PHP Variable will change
    Can you please HELP me?

  2. #2
    Member
    Join Date
    Jun 2008
    Location
    US
    Posts
    84
    If you're using GET, you can use navigateToURL and have a unique URLRequest with each button.

    From Adobe's Flash documentation,
    function gotoAdobeSite(event:MouseEvent):void
    {
    var adobeURL:URLRequest = new URLRequest("http://www.adobe.com/");
    navigateToURL(adobeURL);
    }

    linkButton.addEventListener(MouseEvent.CLICK, gotoAdobeSite);

    Your code could be very similar to that, replacing the URL with http://yoururl.com?query=something
    and creating 3 event listeners and probably a switch to handle the differing URLRequests

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