When a user click a link, it would redirect them to a page, something like:
http://www.domain.com/index.php?var=string
Is it possible in AS3 to grab the variable (var)??
(I know there are alot of ways to get the variable, for example, php $_GET, but my website is purely flash based, I dont want to use php to get the value and store it in session and pass it to others pages. ANd I could not store in form and pass it to others pages, because the main button is in Flash, so I need to use AS3 to pass the variable).
Check out this tutorial on using FlashVars as a parameter in your
<object>code. Basically, you could use PHP or Javascript to get the variables from the address string and then insert them into the<param>FlashVars tag.