Id like to display GreyBox over my flash site. It involves putting this in the head…
<script type="text/javascript">
var GB_ROOT_DIR = "http://mydomain.com/greybox/";
</script>
<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" />
It is called from a html link like this…
<a href="http://google.com/" onclick="return GB_showFullScreen('Google', this.href)">Visit Google</a>
How would I write a flash function to call this from flash and have it communicate with the webpage flash is sitting in?
Thanks!
Rich
can you share your solution?
Regards,
Mike
I’ve been trying to do this with no luck.
Regards,
Mike
I actually was disappointed with the Greybox. It did not work well over flash for me.
I went with Shadowbox. You can get it online.
You will need to follow the instructions provide with shadowbox and put the proper .js references in the head.
Here’s the function I found on the net that connects the flash movie to the Shadowbox.
<script type=“text/javascript”>
function abrirSB(type, title, url)
{
Shadowbox.init({skipSetup: true});
Shadowbox.open({type: type, title: title, content: url, height: 800, width: 600});
};
</script>
Then you will need actionscript for your button, something like…
on (release) {
getURL(“javascript:abrirSB(‘swf’, ‘Breakfast Menu’, ‘http://www.mysite.com/menus/breakfast.swf’);”, “_self”);
}