Tracing the url in AS2.0

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!

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?

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.

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


<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?