×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Passing variables into flash

Passing variables into flash

Passing variables into flash

(OP)
What is the syntax for passing a variable into a swf from the url string calling the parent html page. www.site.com/page.html?variable=value doesn't seem to reach the swf. Is there something new I need to do?

RE: Passing variables into flash

When you add the variables to the URL and load a page, the variables are communicated to the browser, not to the movie.
 
In order to get the variables from the URL in Flash, you need to use the Load Variables statement.

Select a frame or symbol and double click on it. In the Actions tag add a Load/Unload Movie. Select the 'Load variables into location' option.

Write your absolute URL in the URL section, the Timeline level of your movie (if you only have one then it is 0), and in the variables select GET.

Flash gets the variable or variables and then you can deal with them inside the movie.

Write me if you have questions. ferhelping@yahoo.com

Fernando Regueiro
ferhelping@yahoo.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close