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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Flash variables problem - impossible to show swf


Go to End


2 Posts   1966 Views

Avatar
widoczni.pl

Community Member, 9 Posts

17 March 2008 at 1:36am

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

Community Member, 9 Posts

17 March 2008 at 4:06am

Edited: 17/03/2008 4:06am

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