A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Pulling variables from a URL:

  1. #1
    Junior Member
    Join Date
    Apr 2000
    Posts
    29
    Is this possible? Example:

    someone goes to

    http://www.server.com/flashmovie.html?variable=value

    The .swf examines that URL, and parses it (is parse the right word?) such that the variable and value are extracted and used in the movie.

    Maybe this is what generator is for, but I'm just looking for a way to get dynamic text into a movie..

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Posts
    584
    close

    if you have in the html flashmovie.swf?variable=value, the value of variable automatically gets passed to the flash movie. however, it doesn't automatically happen when attached to the url.

    however, with php or some other similar language, you could have the script capture the variable being passed in the url and append that to the flash movie. it would look something like <? print "flashmovie.swf?variable=$variable"; ?>


    [Edited by mbannonb on 04-23-2002 at 12:49 AM]

  3. #3
    Junior Member
    Join Date
    Apr 2000
    Posts
    29
    hmmm.. do yuo know, do the variables get processed at the root level? meaning, if i have a movie clip that wants to use that variable, shoudl i reference it as _root.variable? or /:variable ? .. it doens't seem to be connecting for some reason.. ?

  4. #4
    Junior Member
    Join Date
    Apr 2000
    Posts
    29
    it was the root level; the next question that i have is can you pass more than one variable to the movie?

    movie.swf?var1=foo&var2=blah

    it doesn't seem to be working.. maybe i'm doign something wrong?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center