A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] [MX04] Passign variables through into a function - very simple

  1. #1
    Senior Member
    Join Date
    Jul 2002
    Posts
    119

    [RESOLVED] [MX04] Passign variables through into a function - very simple

    Hi there.

    I have a function that is try to pass through a url to a pop up menu using Javasccript. The pop up works fine but i cant get the url parameter to pass through.

    On the root of the movieclip i have:

    Code:
    function popUp(url : String){
    	var fullURL = url;
    		getURL("javascript:NewWindow=window.open('fullURL','myWindow','width=300,height=200,left=400,top=200,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
    	}
    Then on the button i have:

    Code:
    on (release) {
    		popUp("www.msurgery.co.uk/contract.php");
    	}
    Thanks for your time.
    Last edited by juanmac; 07-04-2006 at 11:16 AM.

  2. #2
    Junior Member
    Join Date
    Jun 2006
    Location
    Earth
    Posts
    6
    Try this...

    code:

    function popUp(url:String)
    {
    var fullURL = url;
    getURL("javascript:window.open('"+fullURL+"','myWi ndow','width=300,height=200,left=400,top=200,toolb ar=No,location=No,scrollbars=No,status=No,resizabl e=No,fullscreen=No'); NewWindow.focus(); void(0);");
    }




    code:

    on (release) {
    popUp("http://www.msurgery.co.uk/contract.php");
    }



    Regards,
    Mike.

  3. #3
    Senior Member
    Join Date
    Jul 2002
    Posts
    119
    Working now.

    Thanks Mike, superb !

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