Hello, and thanks for looking at this question.
I have written the following simple embedding code:
<!-- Flash Movie -->
<div align="center" style="position:absolute; bottom: 24px;
clear:both; right:36px;">
<script type="text/javascript">
var flashvars = {};
flashvars.type = "{type}";
flashvars.loRef = "{loRef}";
var params = {};
params.play = "false";
params.menu = "false";
params.quality = "high";
params.allowscriptaccess = "sameDomain";
var attributes = {};
attributes.id = "swf01_page10";
attributes.name = "name";
attributes.align = "middle";
swfobject.embedSWF("../../medialibrary/2DII/2DII0006.01.swf",
"div_swf01_page10", "440", "360", "9.0.0", false, flashvars, params,
attributes);
</script>
<!-- This Div will be replaced by the Flash movie, if the movie can
load. It must have a unique Id for this page. -->
<div id="div_swf01_page10">
<img src="{media}" alt="{mediaAlt}"/>
</div>
</div>
In my Flash file I have the following actionScript code:
//loader info
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
var loName:String = String(paramObj["loRef"]);
var loType:String = String(paramObj["type"]);
When viewed in Safari on my Mac all is fine. However my client has IE6
on PCs and no matter what I try I can't get the flashvars to be passed
to the Flash file. It's very curious.
I would be very grateful if anyone can suggest where I am going wrong.
Many thanks
Chris
--
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en.