PDA

View Full Version : Flash MX 2004 Links



incka
01-26-2004, 11:02 AM
Flash MX 2004 doesn't like this code:


getURL(http://www.games2go.co.uk,_blank,POST);

But I can't figure out why. It tells me there is a syntax error.

Best.Flash
01-27-2004, 09:26 AM
Try this:



getURL("http://www.games2go.co.uk", "_blank");


You'll need to define the values with quotes.

b.t.w you wont need to use the POST value usless your passing variables to the target URL ;)

incka
01-27-2004, 09:29 AM
I put that on because I originally thought the lack of it was the problem.

incka
01-27-2004, 09:55 AM
Flash is giving me this error with your code:

**Error** Scene=Scene 1, layer=Layer 4, frame=1:Line 1: Statement must appear within on handler
getURL("http://www.games2go.co.uk", "_blank");

Total ActionScript Errors: 1 Reported Errors: 1

Best.Flash
01-27-2004, 10:28 AM
Oh yer, if your attaching it to a button (check the top of the actions panel) you'll need to define an event handler ie.

on (release) {
getURL("http://www.games2go.co.uk", "_blank");
}

incka
01-27-2004, 11:31 AM
Thanks :)