A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: passing vars into movie

  1. #1
    hello all,
    how can i pass a simple name=value pair into a movie? i've tried adding as param and appending onto file name bu ti'm doing something wrong. how do i pick up the value inside the movie?

    thx

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    if you edit the param name="movie" tag so it reads

    <param name="movie" value="mymovie.swf?myvar1=hello&myvar2=world">

    and then the src of the embed tag so it is

    <embed src="mymovie.swf?myvar1=hello&myvar2=world"

    in the movie you will now have 2 variables created myvar1=hello and myvar2=world

    you can pass more variables separating them with & like,

    myvar1=hello&myvar2=world&someothervariable=bleh

    you could create these query strings dynamically using javascript or a server side script.

  3. #3
    Junior Member
    Join Date
    Apr 2002
    Posts
    3

    Flash player 6

    I've been using this same method and it worked great with the flash 5 player, but when I upgraded to the 6 player, it stopped working. What could the problem be?

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