Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Flash variables problem - impossible to show swf


Reply

2 Posts   1595 Views

Avatar
widoczni.pl

17 March 2008 at 1:36am Community Member, 9 Posts

hi,
I've got a problem wiht addVariable (please take a look at the code below)

When I put two variables - swf presentation can't show on a webpage, when there is only one parameter everething is ok.

Did you have this kind of problem ?

here is the code:

<div id="HeaderZdjecia">
      </div>
      <script type="text/javascript">
         var so = new SWFObject("header.swf", "mymovie", "950", "400", "9", "#ffffff");
         so.addParam("wmode", "transparent");
         so.addVariable("xmladress", "menurel.xml");
         so.addVariable("id", "2");
         so.addVariable("fv", "2");
         so.write("HeaderZdjecia");
      </script>

Avatar
widoczni.pl

17 March 2008 at 4:06am (Last edited: 17 March 2008 4:06am), Community Member, 9 Posts

uff, I've fix it ;)

the problem was only in firefox and cause the error
An invalid or illegal string was specified" code: "12

I've replaced "&" --> "&amp;" in flashvars section
in my swfobject.js file and it works !!!