# Get URL function

**URL:** <https://forum.kirupa.com/t/get-url-function/15440>\
**Category:** flash\
**Created:** [March 14, 2003, 4:56am UTC](https://forum.kirupa.com/t/get-url-function/15440 "2003-03-14T04:56:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Palaecro](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@Palaecro](https://forum.kirupa.com/u/Palaecro)\
**Post date:** [March 14, 2003, 4:56am UTC](https://forum.kirupa.com/t/get-url-function/15440/1 "2003-03-14T04:56:37Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 14, 2003, 4:59am UTC](https://forum.kirupa.com/t/get-url-function/15440/2 "2003-03-14T04:59:24Z")

</div>

getURL(“file.swf”)

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 14, 2003, 5:12am UTC](https://forum.kirupa.com/t/get-url-function/15440/3 "2003-03-14T05:12:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 14, 2003, 5:18am UTC](https://forum.kirupa.com/t/get-url-function/15440/4 "2003-03-14T05:18:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 14, 2003, 5:19am UTC](https://forum.kirupa.com/t/get-url-function/15440/5 "2003-03-14T05:19:39Z")

</div>

Ah, ok. Congrats on fixing it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 14, 2003, 5:24am UTC](https://forum.kirupa.com/t/get-url-function/15440/6 "2003-03-14T05:24:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 14, 2003, 5:25am UTC](https://forum.kirupa.com/t/get-url-function/15440/7 "2003-03-14T05:25:36Z")

</div>

Check out this thread…

[http://64.207.155.38/forums/showthread.php?s=&threadid=17141](http://64.207.155.38/forums/showthread.php?s=&threadid=17141)
