Opening shadowbox from Flash: quicktime vid not showing

4 messages Options
Embed this post
Permalink
WebWorx24

Opening shadowbox from Flash: quicktime vid not showing

Reply Threaded More More options
Print post
Permalink
I'm using Shadowbox 3 in conjunction with a flash site I'm designing for a client. The problem that I'm running into is that when I try to open a quicktime video with SB the video will not appear but the SB effect occurs. One might think there's an error in the url path to the video but there isn't, when I substitute the content path to point to an image the image appears within SB.

Here is the site in question (the thumbnail in the center is what triggers SB): http://www.hectorarandawebworx.com/SandBox/Burning/

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

The AS2 that I'm using is:

stop();
import flash.external.ExternalInterface;
button.onRelease = function() {
        ExternalInterface.call("openShadowbox",'http://www.hectorarandawebworx.com/SandBox/Burning/includes/media/film/TheReason/TheReasonBTS.mov', 'qt', 'Test Image Title');
};

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

And the HTML code is:

<link rel="stylesheet" type="text/css" href="includes/js/shadowbox/shadowbox.css" />
<script type="text/javascript" src="includes/js/shadowbox/shadowbox.js"></script>

<script type="text/javascript">
var openShadowbox = function(content, player, title){
    Shadowbox.open({
        content:    content,
        player:     player,
        title:      title
    });
};
</script>

<script type="text/javascript">
Shadowbox.init();
</script>

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

I've already tested this out with SB 2 and it works perfectly, but since SB 3 is a much smaller script size I'd like to see if I can make it work.

 
hothousegraphix

Re: Opening shadowbox from Flash: quicktime vid not showing

Reply Threaded More More options
Print post
Permalink
Have you tried defining the qt player in the init function?
WebWorx24

Re: Opening shadowbox from Flash: quicktime vid not showing

Reply Threaded More More options
Print post
Permalink
Thanks hothousegraphix. I've been so jaded troubleshooting the code that I deleted the code to call the qt player sometime during my tinkering. I appreciate you jogging my mind.

Now it works the way it should.
hothousegraphix

Re: Opening shadowbox from Flash: quicktime vid not showing

Reply Threaded More More options
Print post
Permalink
WebWorx24 wrote:
I've been so jaded troubleshooting the code...
I feel ya! I've been frustrated with the lack of documentation on features discussed here on this very forum. No practical examples provided though.

Glad I could help.

Regards!