Problem with Alternative Content using SWFObject 2.2

8 views
Skip to first unread message

hsobhy

unread,
Nov 21, 2009, 6:59:21 PM11/21/09
to SWFObject
Hello,
I have a problem with SOFObject 2.2 alternative content while using
dynamic publishing for multiple movies. Only the alternative content
of the last movie is generated while the alternative content for the
first movie is not. hereafter my HTML page code.

===========================================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://
www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>

<script type="text/javascript" src="swfobject.js"></script>

<script type="text/javascript">
var flashvars = {lang: "1"};
var params = { menu: "false"};
var attributes = { id: "HeadBase", name: "HeadBase"};
swfobject.embedSWF("/english/flash/HeadBase.swf", "HeadBase", "940",
"220", "10.0.0", "/english/flash/expressInstall.swf", flashvars,
params, attributes);
</script>
<script type="text/javascript">
var flashvars = {lang: "1"};
var params = { menu: "false"};
var attributes = { id: "slideshow", name: "slideshow"};
swfobject.embedSWF("/english/flash/slideshow.swf", "slideshow",
"680", "208", "10.0.0", "expressInstall.swf", flashvars, params,
attributes);
</script>

</head>

<body id="pages">

<div id="HeadBase">
<div class="nonflash">
Altenative Content for movie 1
</div>
</div>

<div id="slideshow">
<div class="nonflash">
Altenative Content for movie 2
</div>
</div>
</body>
</html>
===============================================================================

I added the following script for a fake movie before the script of the
first movie what fixed the problem but I still don't agree with this
solution


<script type="text/javascript">
var flashvars = {lang: "1"};
var params = { menu: "false"};
var attributes = { id: "empty", name: "empty"};
swfobject.embedSWF("empty.swf", "empty", "0", "0", "10.0.0",
"expressInstall.swf", flashvars, params, attributes);
</script>

Any Ideas?

Thank you in Advance

Sam Sherlock

unread,
Nov 23, 2009, 4:46:15 AM11/23/09
to swfo...@googlegroups.com
the setup with the first two does work for me.

Since the paths are different to the swf's you should check that you have paths to the swfs correct

- S


2009/11/21 hsobhy <hany....@gmail.com>

--

You received this message because you are subscribed to the Google Groups "SWFObject" group.
To post to this group, send email to swfo...@googlegroups.com.
To unsubscribe from this group, send email to swfobject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swfobject?hl=.



Reply all
Reply to author
Forward
0 new messages