Get URL function

Hi, I’m having trouble understanding how to use the get URL function. When I put in the URL do I need to have the full location, or can I just put the folder the file is in and then the file name?

As well can someone give me an example of how to write it exactly, because I can’t seem to get it right. The file I want to activate through a button is called S2P2.swf and it’s in a folder called Portfolio_Work on my desktop.

Now the tricky part to all this is that once I have everything running I plan to burn it to a CD. So what I need to know is do I input the URL which is going to be on the CD or can I use the one I use while it is still on my desktop?

getURL(“file.swf”)

you may need to put the folder names for the path of the file…

It all depends on how you have it set up on the CD.

If on the CD you burn your folder as well so it will all be in the same directory, then you don’t need to put the full path, just the file name, or foldername then filename.

In your case it sounds like it would be…

[AS]getURL(“Portfolio_Work/S2P2.swf”)[/AS]

It targets pretty much the same way as an A HREF tag in HTML.

Thanks, I figured out why it wasn’t working I had the file I was working with saved to a different location.

Ah, ok. Congrats on fixing it.

Ahh actually one follow-up question, do you happen to know how to make a .swf autorun off of a CD?

Check out this thread…

http://64.207.155.38/forums/showthread.php?s=&threadid=17141