Question

Topic: Other

Pop Up Windows With The Geturl Action In Flash Mx

Posted by Anonymous on 250 Points
I am trying to make a website menu with Flash, that has buttons that when pressed, create new fixed-sized pop-up windows. The website that has the flash html right now is https://www.theugly-club.com/uglymenu.html .

Any suggestions?

[Moderator: Inactive link removed from post. 2/14/2011]
To continue reading this question and the solution, sign up ... it's free!

RESPONSES

  • Posted by jpoyer on Accepted
    You wrote: "In the action script for each button I put : getURL(javascript:openNewWindow(' https://www.theugly-club.com/monthly','monthly','height=600,width=400,toolb..., ));
    For some reason it says that there is an error with this..."

    Answer: The problem with this line looks to be that the quotations weren't closed. It should read something more like this:
    getURL(javascript:openNewWindow(' https://www.theugly-club.com/monthly','monthly','height=600,width=400,toolb...));

    You wrote: I also put the following code in the www.theugly-club.com/monthly page:

    ipt language="JavaScript">
    function openNewWindow('https://www.theugly-club.com/monthly', 'monthly', 'clothing','height=600,width=400,toolbar=no,
    scrollbars=yes') {
    newWindow=window.open('https://www.theugly-club.com/monthly', 'monthly', 'clothing','height=600,width=400,toolbar=no,
    scrollbars=yes'); }
    ipt>

    Answer: The main problem here is that when you're declaring the function, you're not supposed to provide the values of the data, just variable names. Another problem seems to be that you're trying to send too many parameters to the function. Try using this function instead:

    ipt language="JavaScript">
    function openNewWindow( url, windowName)
    { window.open(url, windowName, 'height=600,width=400,toolbar=no, scrollbars=yes');
    }
    ipt>

    Now you can create a new window by calling the function:
    openNewWindow(" https://www.theugly-club.com/monthly ", "monthly");

    Hope this helps.

    Best Wishes,

    Jennifer
    XPRT Creative

Post a Comment