This content has been marked as final. Show 3 replies
I'll approach this from the opposite end... replace the code you have with:
getURL(" http://gnome.deseloper.com", "_blank");
If that works, then the problem is that you didn't put the code where the instructions you show indicated you should. For what you did, the code I just showed is appropriate (though not a good practice because it is hidden from easy review). It's better to keep your code in the timeline where it can be easily found.
You will have selected the button and then typed the code in the actionscript editor. Instead, you need to click on the frame in the (separate) actions layer in the main timeline that you should have made already, not the button layer, and then place that code from the tutorial in the actionscript editor window.
Here's what I got when I applied your script to frame 1 on the Actions layer:
**Error** Scene=Scene 1, layer=actions, frame=1:Line 1: Mouse events are permitted only for button instances
Total ActionScript Errors: 1 Reported Errors: 1
What does this tell us?
Oh NEVER MIND! I applied my old code in the same way and it works. You solved my problem!
Thanks so much for being there. Learning this stuff would be much harder without the support of people like you.