Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

t00l

macrumors newbie
Original poster
Oct 17, 2008
1
0
Im using
greybox: http://orangoo.com/labs/GreyBox/

Does anyone know how to OR if you can set up a greybox link from within my .fla file?

I've created my button, added listeners and functions, but i cant seem to set it up right to get the greybox to work!

this is the html link that works fine.
<a href="link.html" title="Links" rel="gb_page_center[340, 300]">Link</a>


I got a javascript popup window to work:
var js:URLRequest=new URLRequest();
js.url="javascript:window.open('link.html','Links','width=340,height=300,scrollbars=yes');newWindow.focus(); void(0);";

link.addEventListener(MouseEvent.CLICK,openPopUp);

function openPopUp(evt:MouseEvent):void
{
navigateToURL(js,'_self');
}


BUT I want to use the greybox styling - it creates a popup, the rest of the screen goes dark, until you close the window.

any help or suggestions would be appreciated.
Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.