Noobish question, loading variables from URL

Is there a way to load some variables from the URL like www.example.com/flash.swf?var1=there&var2=is?