These forums are provided for community interactions only. For official support please submit a support ticket.

You are not logged in.

#1 2012-03-30 21:55:39

pgaadmin
New Member
Registered: 2009-10-06
Posts: 2

useExternalInterface and onSlideShowProReady function

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.

Code:

<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
}
});

Code:

    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

 

#2 2012-04-02 16:20:18

pgaadmin
New Member
Registered: 2009-10-06
Posts: 2

Re: useExternalInterface and onSlideShowProReady function

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

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson