PDA

View Full Version : getURL prob,,,


zeemzima
03-16-2006, 06:21 AM
i want the button to open the url in a window but for some reason it only opens in the same window. i thought the action script was right but it's not working the way it should. here is the script, any ideas????

on (rollOver) {
gotoAndPlay("S1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("S2");
}
on (release) {
getURL("http://www.yahoo.com", _"blank");
}

FormerSwinger
03-16-2006, 07:39 AM
replace getURL("http://www.yahoo.com", _"blank");
with getURL("http://www.yahoo.com", "_blank");
Or maybe thats just typo in the post?

zeemzima
03-16-2006, 06:18 PM
no it wasnt a typo but i changed it to "_blank" and it didnt work. i cant figure it out! help anyone???

piratefish
03-17-2006, 01:49 AM
Are you simply testing it in Flash? If you're doing that then it will use which ever browser is open. Try putting it on the web and see if it works (It works for me).

zeemzima
03-17-2006, 04:24 AM
ya its already on the web. thats why i want it to open the links in new windows so you wont leave my site. i tried making the buttons movie clips but then i get a error and the roll over dosnt work. right now the buttons are just bitmap images, does it matter if they are movie clips or not??

lovefist233
04-06-2006, 07:44 PM
your button should be a 'button' not a movie clip or graphic,
code should be

on (release) {
getURL("http://www.yahoo.com", "_blank");
}

does the button still exist when you goto S1 or S2?

is the code on the button itself and not the layer or another object?