# Greybox/external interface call as3

**URL:** https://forum.kirupa.com/t/greybox-external-interface-call-as3/293667
**Category:** flash
**Created:** [August 1, 2009, 3:34am UTC](https://forum.kirupa.com/t/greybox-external-interface-call-as3/293667 "2009-08-01T03:34:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ro\_Gee](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@Ro\_Gee](https://forum.kirupa.com/u/Ro_Gee)
#### Post date: [August 1, 2009, 3:34am UTC](https://forum.kirupa.com/t/greybox-external-interface-call-as3/293667/1 "2009-08-01T03:34:50Z")

</div>

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:

```
ActionScript Code:
[LEFT]ericEmail.[COLOR=#000080]addEventListener[/COLOR][COLOR=#000000]([/COLOR]MouseEvent.[COLOR=#000080]CLICK[/COLOR], buttonclicked[COLOR=#000000])[/COLOR];

```

[COLOR=#000000] **function** [/COLOR] buttonclickedCOLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
ExternalInterface.[COLOR=#0000FF]call[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[/LEFT]

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:

```auto

<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" />

```

You can see this in action (or “inaction”, more aptly) by going to **[http://www.cosmogrey.com](http://www.cosmogrey.com) and clicking on “our marketing firm”**.

Please help.

Thank you, kindly!!!
