# Tracing the url in AS2.0

**URL:** <https://forum.kirupa.com/t/tracing-the-url-in-as2-0/262502>\
**Category:** flash\
**Created:** [June 6, 2008, 1:55pm UTC](https://forum.kirupa.com/t/tracing-the-url-in-as2-0/262502 "2008-06-06T13:55:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![midunlap](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@midunlap](https://forum.kirupa.com/u/midunlap)\
**Post date:** [June 6, 2008, 1:55pm UTC](https://forum.kirupa.com/t/tracing-the-url-in-as2-0/262502/1 "2008-06-06T13:55:05Z")

</div>

Greetings!

I have an Actionscript 2.0 question for anyone out there. I working on a Flash quiz that will trace the users coming from a particular page on a website. If the user comes from that page then a link will not be displayed in the quiz. If they don’t come from that page then the link will be displayed, or the link will be turned on if you will.

The reason for the dynamic functionality, is to avoid creating two flash files that do the same thing, and then maintained on a regular basis.

Any thoughts?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 6, 2008, 2:12pm UTC](https://forum.kirupa.com/t/tracing-the-url-in-as2-0/262502/2 "2008-06-06T14:12:01Z")

</div>

Pass in query sting from the page where you want to show the link. Then just have a flag in flash.

How are users getting to this page, flash or html?

---

<div class="post-metadata">

**Author:** ![midunlap](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@midunlap](https://forum.kirupa.com/u/midunlap)\
**Post date:** [June 6, 2008, 6:06pm UTC](https://forum.kirupa.com/t/tracing-the-url-in-as2-0/262502/3 "2008-06-06T18:06:02Z")

</div>

Users are getting to the page through a html link. The flash is also embedded into a html page, but the link I want to appear or not to appear based on user’s click history is within the actual flash itself.

---

<div class="post-metadata">

**Author:** ![Digitalosophy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/digitalosophy/32/1114_2.png) [@Digitalosophy](https://forum.kirupa.com/u/Digitalosophy)\
**Post date:** [June 6, 2008, 6:10pm UTC](https://forum.kirupa.com/t/tracing-the-url-in-as2-0/262502/4 "2008-06-06T18:10:35Z")

</div>

Ok so then check out Flash Vars. What you want to do is pass a variable in from the html button.

```auto

<a href = "flashpage.htm?showURL=true">Click here</a>"

```

Then on the page that displays that swf just call that variable and embed it in Flash Vars. have Flash check to see the value of the variable showURL and make a decision based on that.

You follow?
