Hi Everyone,
I am trying to open a greybox window from my flash movie. I am not getting a syntax error, but the window will not open when I click the button, either.
Here is my actionScript 3 code:
[AS]
ericEmail.addEventListener(MouseEvent.CLICK, buttonclicked);
function buttonclicked(event:MouseEvent){
ExternalInterface.call("opengreybox",'http://www.cosmogrey.com/contacts/trautmann.html');
}
[/AS]
FYI: I tried putting the URL parameter in single quotes and double quotes, also.
here is the html code I placed in the head tags of the page that I want to appear in the GB window:
You can see this in action (or "inaction", more aptly) by going to http://www.cosmogrey.com and clicking on "our marketing firm".Code:<script type="text/javascript"> var GB_ROOT_DIR = "http://www.cosmogrey.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> <script language="javascript"> function opengreybox (ParameterFromFlash){ GB_showCenter('Trautmann',ParameterFromFlash, 300, 400) } </script> <link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" />
Please help.
Thank you, kindly!!!


Reply With Quote
Bookmarks