8 Replies Latest reply on Dec 3, 2007 11:03 AM by Greg Dove

    send var to flash from html to load movie

      After several days I could really use some help with this....

      I have created a banner.swf file and placed it on an html page using swfObject js detection. I want to send a variable from the web page to tell the banner.swf file to load an external image and/or .swf file to an empty_mc on the stage with instance name "container".

      I have the following on the html:

      <script type="text/javascript"> var fo = new FlashObject("banner.swf", "swf", "800", "212", "8", "#ffffff"); fo.write("movieAlt");
      so.addVariable("var1", "myImage1.jpg");

      I have the following on the frame 1 Actionscript:

      var myMCL:MovieClipLoader = new MovieClipLoader();
      myMCL.loadClip("var1", "container");

      I have gotten the external file to load when it's hard coded into the actionscript but need to load it from html page. I know I must be missing something so thanks for any help! SD