Forums

Overview » Adobe Creative Suite » LightBox Flash Help
This topic is locked

LightBox Flash Help

Dan SMith
Newbie



Since: 07 Jun 2009
Posts: 1
Posted 07 Jun 2009 13:41:16

Ok i've added this between
<head> and </head>



<script type="text/javascript">
function SWFDelegate(url,width,height,caption) {
   var objLink = document.createElement('a');
   objLink.setAttribute('href',url);
   objLink.setAttribute('rel','lightbox');
   objLink.setAttribute('title',caption);
   if(typeof width != 'undefined') {
      objLink.setAttribute('width',width);
   }
   if(typeof height != 'undefined') {
      objLink.setAttribute('height',height);
   }
   Lightbox.prototype.start(objLink);
}
</script>
</head>





and on my button image on Adobe Flash CS3 i have.


on( release )
{
getURL("javascript:SWFDelegate('images/nelson.png','480','640','Septik')");
}



The picture shows the clickable hand but it doesn't show my picture any bigger, when i click it nothing happens, please help.

Ok i've added this between
<head> and </head>



<script type="text/javascript">
function SWFDelegate(url,width,height,caption) {
   var objLink = document.createElement('a');
   objLink.setAttribute('href',url);
   objLink.setAttribute('rel','lightbox');
   objLink.setAttribute('title',caption);
   if(typeof width != 'undefined') {
      objLink.setAttribute('width',width);
   }
   if(typeof height != 'undefined') {
      objLink.setAttribute('height',height);
   }
   Lightbox.prototype.start(objLink);
}
</script>
</head>





and on my button image on Adobe Flash CS3 i have.


on( release )
{
getURL("javascript:SWFDelegate('images/nelson.png','480','640','Septik')");
}



The picture shows the clickable hand but it doesn't show my picture any bigger, when i click it nothing happens, please help.