I am new to this kind of actionscript, and someone on the 5th floor has the flash books, and I can’t locate them. If anyone could help, I would greatly appreciate it.
I have a client that needs a flash intro that will be accessed through a link in an email campaign. When the user clicks the link in their email, it sends them to this flash intro, but also sends a querystring with it. I need the flash file (v5) to read the querystring, use it during the movie, and then pass it on to an asp page when the intro is done playing.
Here’s a solution I got help with from a distant friend:
Put the querystring values dynamically into the <param…> and <embed…> tags, after the name of the flash file. Then, the flash movie stores those values, and when I redirect at the end of the movie, just redirect with GET to an ASP page that can then capture those values passed.
Just wanted to share this with everyone in case someone had the same problem in the future. If my description is confusing and your interested more, I can supply a .fla and .asp sample.
yeah not many people seem to know about the query string option in the object and embed tags. When you generate the page the flash movie is in, just put the query string after the .swf in the object and embed tags to add those variables to _root (note this may not function correctly testing locally; theres a technote about this over at MM’s site).
sending out info from Flash is common and examples are all over the place. Im sure dshallenberger will post his
i know but what i wanna know is how to pass a querystring from the html url?? not from html page… if i can pass variable from html url i can pass different values for the variables… thats what i wanna do
woahhhhhhhhh thanks man… you answered my question :)… thanks… can i get some help with a asp or php page?? please… to pass variable from the url to the flash parameters???
what i wanan basically do it make my website which is in flash is… give direct links to specific pages in flash…
Sorry I disappeared for a bit trying to get this project done. Then, the site and flash posted live today, and the client has MAJOR changes, last minute, and the mailing promoting the site mailed this morning! AAARRGHH!
Anyhow, I’ve attached my asp page, not the .fla. The .fla file only has a getURL with GET statement at the end of the movie. The work of passing the variable values is done in this .asp page.
If you need anything else I can help with, let me know.
Thanks for the Text File on that last post… but that part I already knew how to take care of. The part I don’t know, is how do I grab those variables within the Flash file?
Please can you show me the exact command to grab a variable called ‘ID’ which contains an integer.
From what I can tell it appears to be something along the lines of