PDA

View Full Version : Button won't link to URL


ebbatten10000
11-12-2005, 09:12 PM
Could you guys check this script for me? I can't get any concrete answers for why this isn't working. Script check says there are no errors but it's still not working.

for skipIntro_btn (named so in Properties) placed on Frame 1 and script on the Main Timeline, I've also tried rewriting the script and putting it on the button.

skipIntro_btn.onRelease = function () {
getURL("final_content.html", 0);
}

I've tried "_blank", "_self", ".root"
I've tried it as a movie clip with the action script adjusted accordingly on the movie clip's timeline as well as the main timeline.

NOTHING has worked. I am capable of using invisible buttons over graphics, but I don't want to do that. can anyone help me? this is insane.

Cota
11-12-2005, 09:32 PM
skipIntro_btn.onRelease = function () {
getURL("final_content.html", "_blank");
}


Makes sure the instance name of the button is skipIntro_btn, not just the name, but the instance name.

d_philly
11-19-2005, 05:14 PM
Buttons in flash are sketchy at best. I have noticed that if your button is not on the first frame of the timeline it resides, flash doesn't recognize it. Try putting you're button on the first frame and disable it or turn it's visibility to false until you need it.

Your code is correct- flash just doesn't see the button.