Hi,
I've checked the code I usualy use, and here is how i do.

The following code works, and it contains 2 changes :
- execute the function using Swiff.remote($('stuff'), 'function',
[params]);
- add a random value at the end of the movie name, to avoid ie caching
(this bug is also happening when you try to get the "Stage.stageWidth"
in flash / ie.

Marc L.

<html>
  <head> <script type="text/javascript" src="js/mootools-1.2.4-core-
nc.js"></script> </head>

  <body>

      <!-- TESTCASE 1 -->
      <div id="div_works"></div>
      <a href="#" onclick="$('works').backgroundImage('dummy
string')">works</a>

    <hr/>

      <!-- TESTCASE 1 -->
      <div id="div_worksnot"></div>
      <a href="#" onclick="Swiff.remote($('worksnot'),
'backgroundImage','test'); ">works not</a>


    <script type="text/javascript" charset="utf-8">
          window.addEvent("domready", function(){

              // SCRIPT TESTCASE 1
              // callback works
              var s = new Swiff("Main.swf", {'id': 'works',
'container': 'div_works' ,'height': '100px', 'width': '300px'});

              // SCRIPT TESTCASE 2)
              // callback works not - but Flash object is displayed
              var s = new Swiff("Main.swf?te="+Math.random()*20000,
{'id': 'worksnot', 'height': '100px', 'width': '300px'});
              $("div_worksnot").adopt(s.toElement());
          });

    </script>

  </body>
</html>

To unsubscribe from this group, send email to 
mootools-users+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to