PDA

View Full Version : Help wih Get URL script?


kristy16
03-09-2007, 07:55 PM
I'm pretty new to action script and am currently working with Flash MX. I have created a Flash intro for the website that I'm developing (Dreamweaver). I would like any user viewing my site to be able to click the "skip intro" button I have created which should open the home page of the site. The action script I have applied to the instance of the button in my flash movie is as follows:

skipintro.onRelease = function() {
getURL("http://www.klkmultimedia.com/home.html", "_self", "GET");
};


What am I doing wrong? My button does not open the url I have specified. Any help would be much appreciated. Thanks!

Cota
03-09-2007, 08:11 PM
if you're just sending them to a new page, then you dont need "GET"

skipintro.onRelease = function() {
getURL("http://www.klkmultimedia.com/home.html", "_self");
};

kristy16
03-09-2007, 08:27 PM
ok thanks - I'll try that

kristy16
03-09-2007, 09:12 PM
Hmmm...
I applied this exact ActionScript Code and the button still doesn't open the url. Any ideas?

skipintro.onRelease = function() {
getURL("http://www.klkmultimedia.com/home.html", "_self");
};

Cota
03-09-2007, 10:24 PM
make sure the button has the instance name of skipintro, make sure the code is on the frame where the button is.

kristy16
03-10-2007, 03:01 AM
Thanks so much - Finally fixed it! I had an error in the instance name. I can move on now to more actionscript. Thanks again Cota. By the way, I had the chance to check out some your portfolio. Very impressive websites. Now I know what I have to work up to.

Cota
03-10-2007, 03:48 AM
I apreciate the kind words. I give this advice a lot, Flash is just part of the equation. A great site/project has to look good and run good. It has to be balanced. Also, it doesnt hurt to surround yourself with other good developers and designers.. ;)