PDA

View Full Version : Newbie Q: Inserting Hyperlinks in Movie Files


kingjet
11-15-2005, 03:53 PM
Hello People,

I'm pretty new to flash and am trying to insert a hypertext link into a flash document, so i can export it as a movie and use the movie as a navigation menu on my website.

When I try to use 'get url' in the actionscript. I get this output:

**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 1: ')' or ',' expected
getURL(http://www.indianridge-florida.com/);

Total ActionScript Errors: 1 Reported Errors: 1

Can somebody please help? Im sure im just performing a basic mistake.

Thanks. King.

oldnewbie
11-15-2005, 04:25 PM
DOUBLE QUOTES...
getURL("http://www.indianridge-florida.com/", "_blank");

Use "_self" rather than "_blank" to open in the same widow.

kingjet
11-15-2005, 05:26 PM
Hi, Im getting a little closer to solving my problem. There are stills errors in this script ive written for a button. Can anyone tell me what ive done wrong here:

on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(11);
}
on (press) {
getURL(http://www.indianridge-florida.com/villaphotos.html", "_self");
}

The output says that the problem is in the url part.

Help Please!

Xeef
11-15-2005, 05:29 PM
Mising a "

getURL(http://www.indianridge-florida.com/villaphotos.html", "_self");
getURL("http://www.indianridge-florida.com/villaphotos.html", "_self");

kingjet
11-15-2005, 05:45 PM
thanks xeef, its working now! :)