Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Flash variables problem - impossible to show swf

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

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

Page: 1
Go to End
Author Topic: 1581 Views
  • widoczni.pl
    Avatar
    Community Member
    9 Posts

    Flash variables problem - impossible to show swf Link to this post

    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>

  • widoczni.pl
    Avatar
    Community Member
    9 Posts

    Re: Flash variables problem - impossible to show swf Link to this post

    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 !!!

    1581 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.