These forums are provided for community interactions only. For official support please submit a support ticket.
You are not logged in.
Pages: 1
Is there anything that would prevent the onSlideShowProReady function from being triggered if the useExternalInterface is set to true?
We have tried several examples and we can not detect that the onSlideShowProReady function is being called to set up the listeners.
The SWF file is on a different domain and different server than the Director and both are different than the page that is being viewed.
<script type="text/javascript" src="http://domain1.com/m/embed.js"></script>
<div id="gallery-1">
</div>
<script type="text/javascript">
SlideShowPro({
attributes: {
src: "http://domain2.com/uploads/web/CS-Gallery-AS3.swf",
id: "gallery-1",
width: 550,
height: 550,
},
mobile: {
auto: false,
poster: "vignette"
},
params:{
wmode: "transparent",
allowfullscreen: true
},
flashvars: {
galleryBackgroundAlpha: "0",
xmlFilePath: "http://domain1.com/images.php?gallery=1",
permalinks: "On",
startup: "Open Gallery",
useExternalInterface: true
}
}); function onSlideShowProReady() {
ssp = document.getElementById(swf);
ssp.addEventListener("imageData","onImageData");
alert("xxx");
}
// Event receivers
function onImageData(o) {
alert("onImageData / src: ", o.data.src);
}The alert("xxx") function isn't getting which why we think that onSlideShowProReady() is not being called.
Offline
We have the code working now using the default embed from director. But when we use the Flash component, it doesn't seem to be passing variables out to javascript. Do we need to add anything to the FLA file? Or the embed code?
Offline
Pages: 1