A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: pass variable from HTML --> Flash 4

  1. #1
    Junior Member
    Join Date
    May 2000
    Posts
    1

    Question

    Hello,

    I try to " pass variables on a query string to a Flash movie in HTML" and we change the
    HTML file to look like
    <PARAM NAME=movie VALUE="movie.swf?text=hello">

    for a variable text in the swf.

    it doesnot work for us in IIS 4.0 IE 5.0

    I would appreciate any help.
    The example is taken from http://www.macromedia.com/support/fl...tm#querystring

    thanks in advance

    Vangelis Sakkopoulos

    PS please reply to sakkopul@cti.gr

  2. #2
    Junior Member
    Join Date
    Feb 2000
    Posts
    4

    Post

    You might be interested to know that using javascript you can set variables in the flashmovie. ie

    <script>
    moviename = "idofmovie";
    function setvar(){
    movieobject(moviename).SetVariable("/:Myname","text from javascript");
    }
    </script>

    moviename reflects the id set in the object and embed tags.

    Calling setvar updates the variables in the movie.

    Hope this helps.


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