Skip to main content
Participating Frequently
September 3, 2010
Question

Dynamic Variable and Query String

  • September 3, 2010
  • 1 reply
  • 830 views

Hello all-

Here is a tricky one that has me stumped (I'm no expert so this shouldn't be surprising!)

I have a dynamic variable that gets picked up depending upon which computer is being used and then I turn that variable into a Flashvar to pass into my swf to start loading the video. (Think of this as a different type of username that gets picked up without the client even knowing.)

I have a link that gets clicked and brings you to the swf in a lightbox-like window which loads just fine but only when I define the variable in the querystring such as video.swf?num=1. Is there such a way to pass this flashvar without having to define it since it gets defined dynamically and is always different?

Note: I don't have access to fancy scripting language as our server is quite old... I know I know

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    September 3, 2010

    Do you want your variable ie querystring not to be seen in the url? If you want that then you can use post method instead of get method of posting which you are currently doing.

    If I am wrong then can you explain your query a little bit more.

    Regards,

    Amit

    Greekie10Author
    Participating Frequently
    September 3, 2010

    Hello again Amit

    I must have not explained very well. I will try again.

    • I am pulling an environment variable from the user's PC using vbscript(so each user will have a different variable)
    • I then turn this variable into a flashvar(this flashvar is 75% of the time going to be different)
    • I am using a plugin that loads a swf player in a lightbox overlay, but the user must click a link to access this player. (Why I am thinking querystring is my only option)
    • I want to pass this flashvar to the swf player by querystring since it's just a swf file with no html page attached. (can't seem to pass a dynamic variable through querystring)
    • If I define the variable in the querystring such as player.swf?num=1, the file plays but I need this to be dynamic and can't define it each time so this method will not work for me.

    I do not have access to PHP or any advanced server language so it makes this a little bit harder.

    Adobe Employee
    September 3, 2010

    So do you mean to say your query string variable is different for different clicks or your flashvar is different based on the value of querystring.