PDA

View Full Version : GetURL - one works - the other doesn't!!??


hyperlogic
08-13-2008, 04:59 PM
Hi all,

I am completely stumped, and looking for a bit of advice. :)

I have 2 'getURL' functions on one keyframe, one a text (converted) button, the other an image. They are both next to one-another however only the text (converted) one works. The top bit of code is the text (converted) button:

bt_url.onRelease = function (){
getURL("http://www.mstgroup.co.uk","_blank");
};
bt_ethicaltrading = function (){
getURL("http://www.ethicaltrade.org","_blank");
};

The code for each is exactly the same, i have checked instance names, tried different url's and even created an invisible button for the image based one. I have also tried putting the buttons on the same layer. All of this to no avail.

I could understand if neither worked but i can't see the problem.

Please help!

Many Thanks,
Hyperlogic

CyanBlue
08-13-2008, 05:27 PM
Howdy and Welcome... :)

They are not really the exact copy... You are missing onRelease part...
bt_ethicaltrading.onRelease = function (){
getURL("http://www.ethicaltrade.org","_blank");
};

hyperlogic
08-14-2008, 08:35 AM
Cheers CyanBlue

I feel like a complete muppet now - thats what you get for staring at the same code for so long!! :eek:

Thanks again!

hyperlogic
08-14-2008, 09:44 AM
I have changed the code and still no joy! The code is now as follows:

bt_eti.onRelease = function (){
getURL("http://www.ethicaltrade.org","_blank");
};

I have tried an invisible button again, and putting it on another layer but nothing happens.

Any ideas anyone?

:confused:

CyanBlue
08-14-2008, 02:59 PM
Um... Maybe some sort of a popup blocker is doing its job???