Hey spencer,
Three ways off the top of my head…
1) Use SharedObjects
2) If you are PHP use the sessions / cookies
3) If you’re a little smarty pants, use the “document.referrer” something like this…//actionscript
var referrer:String = ExternalInterface.call("eval",
"document.referrer");
if(referrer.contains("mydomain.com"))
gotoAndStop("lastFrame");
There are actually a few other cool ways I think, but those should get you started.
edit: I’m not sure if contains is actually a String method… haha nope it isn’t, I have too many language syndrome… try:
if(referrer.indexOf("mydomain.com") >= 0)
...
...instead!
Oh, and make sure you have “allowScriptAccess” in your tags, and the SWF needs an “id” and a “name” attribute otherwise ExternalInterface can’t work right on half-baked browsers.
Posted 6 months ago











