A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Macs and Variables?

  1. #1

    Macs and Variables?

    I'm trying to create a map that uses variables imported from the html code ( <param name=movie value="movie.swf?variable=value"> )

    This works perfectly on PCs, but it doesn't work on Macs. Why is this? Is there any way of getting around this or any other way of doing this?

    Thanks

  2. #2
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    The only method to pass variable/value pairs into flash that reliably works on all platforms and browsers is to add an url request string to the end of the swf file location in your object and embed tags.

    So if you'd change it like this:
    PHP Code:
    <param name="movie" value="myswf.swf?variable1=value1&variable2=value2" >
    <
    embed src="myswf.swf?variable1=value1&variable2=value2" 
    Sam



  3. #3
    juggernart me2222's Avatar
    Join Date
    Jun 2000
    Posts
    1,322
    With Flash plugin 6 or higher you should use:
    PHP Code:
    in object:
    param name="movie" value="mymovie.swf"
    param name="FlashVars" value="var1=value1&var2=value2">
    in embed:
    src="mymovie.swf" FlashVars="var1=value1&var2=value2" 
    (There are some bugged player versions where the method suggested by SJT doesn't work offline)
    juggernart.com

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