“getURL doesn’t work!”

Ever used getURL(); for loading new pages in Flash? That’s how you load a new page. Obvious, huh?

In 97% of situations it works fine. The other 3% it doesn’t* I’ve had a rough ride with getURL unexplicably not functioning. Turns out that it works if you omit target parameter of the function call, it works. Remember that next time you get stuck…

* Please note, statistics are made up on the spot.

, ,

About James

James is a Senior New Media Developer at MMT Digital, and has BA(Hons) in Design for Interactive Media from the University of Gloucestershire. He loves designing and producing all sorts of website and Flash-related things, as well as prattling on about technologies.Day-to-day he works with Flash, Dreamweaver, Director, Microsoft Office Sharepoint Server 2007 (MOSS) and in his spare time he mucks about in Flex and Wordpress.Follow James on Twitter.

4 Responses to ““getURL doesn’t work!””

  1. pall zoltan 27th December, 2007 at 5:37 pm # Reply

    i’ve had the same problem, and for a reason or another, getURL wouldn’t work
    so i had to move my code form the .as file onto the button itself…

    i’ve seen people having problems with this even in flash 5… i was using flash cs3, publishing FP9, AS2

  2. Rob 16th February, 2010 at 3:23 pm # Reply

    What is: ‘omit target parameter’?

    How do you set this? Example?

  3. pallzoltan 16th February, 2010 at 3:26 pm # Reply

    it means that you write getURL(‘http://www.google.com/‘); instead of getURL(‘http://www.google.com/', ‘_blank’);

  4. Alam 5th October, 2011 at 4:43 am # Reply

    i had same problem.
    alls.on(release){
    //Replace URL with your own URL, or customized actions.
    getURL(“http://www.filmsemestamendukung.com/index.php”, _blank);
    };

    // or
    alls.onRelease{
    //Replace URL with your own URL, or customized actions.
    getURL(“http://www.filmsemestamendukung.com/index.php”, _blank);
    };

    also wont work.

Leave a Reply

Note: This post is over 4 years old. You may want to check later in this blog to see if there is new information relevant to your comment.