Flash can't open php page using getURL?

Discussion in 'Programming' started by Kerosene, Feb 24, 2008.

  1. #1
    I have a button in my swf that should open a php page. It works fine in Firefox, but goes nowhere in IE.

    Any ideas?

    
    on (release) {
    	getURL("/page.php?var=bla", "_self");
    }
    
    Code (markup):
     
    Kerosene, Feb 24, 2008 IP
  2. NathanH

    NathanH Peon

    Messages:
    39
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Does it show the yellow exclamation mark in the bottom left corner in IE?
    Is the flash object in a form?
    Are you using flash 8 or 9?
     
    NathanH, Feb 24, 2008 IP
  3. Flash Junky

    Flash Junky Well-Known Member

    Messages:
    319
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    130
    #3
    I know this is a long way of doing it, but I found it works the best for me with actionScript 3...


    var urlVar:String = "/page.php?var=bla";

    yourButtonName.addEventListener(MouseEvent.MOUSE_OUT , buttonOut);

    function buttonOut(event:MouseEvent):void {
    var gotoURL:URLRequest = new URLRequest( urlVar );
    navigateToURL( gotoURL, "_blank");

    }
     
    Flash Junky, Feb 25, 2008 IP