Using flashvar in url using action script 2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • colinod
    Contributor
    • Nov 2007
    • 347

    Using flashvar in url using action script 2

    I have a site that passes a gender selected using a url querystring i know i can get that into flash using

    Code:
    <param name=FlashVars value="linkvar=<%= genderid %>" />
    where <%= genderid %> equals my querysting in classic asp.

    I can then get it into a variable in flash using

    Code:
    var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters.linkvar;
    what i want to do then is get the content of the linkvar variable into a url in my flash movie.

    in the end if someone clicks on a link to the page with flash movie it will look like this page.asp?gender =boys for boys gender etc

    in my flash movie i have lots of links that point to pages called either boys.asp or girls.asp so the content of the variable in flash that would equal boys in the clicked link would appear in my url

    'linkvar'.asp

    hope this is not to odd how i have written this i know nothing about as2
Working...