Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Shadowbox revisited

$
0
0

I'll start off by saying that I don't understand how to call an external javascript into Animate. I know how to load, I just don't know how to call it.

 

I got Fancybox.js to work with Animate. I thought it would be easy to get Shadowbox.js to work, just by swapping out the code I used for Fancybox. Here's what I currently have in the compositionReady:

 

$('<script type="text/javascript" src="js/shadowbox.js?v=3.0.3"></script>').appendTo("#Stage");

$('<link rel="stylesheet" type="text/css" href="css/shadowbox.css?v=3.0.3" media="screen" />').appendTo("#Stage");

 

When you click on an object, this is the code I have that is supposed to launch Shadowbox:

 

$.shadowbox.open([

{

type: 'iframe',

href : 'http://player.vimeo.com/video/69182633?autoplay=1',

width : 960,

height : 540,

 

 

},

{

href : 'img/700700.png',

title : '800 x 800'

}

], {

padding : 0

});


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>