title: Does a ActionScript/Flash equvialant to Java GetDocumentBase() exist?
body: <p>Is there a Actionscript/Flash equivalent to Java's GetDocumentBase() Method?
  I'm trying to figure out if I can create events depending on what url the flash object was loaded from.</p>
  
  <p>If the object is loaded at www.Happywifi.com show a happy face animation. If it is loaded at 
  www.Happywifi.com/question/ Show a question mark face.</p>
  
  <p>I'm interested in flash, it seems like more detailed animations are possible with flash that what we are using in Java.</p>
  
  <p>For the love of God please don't respond with "Why are you doing it that way!". The platform we are working with has a few constraints. </p>