Howdy, I'm almost there....

This is working

PHP Code:
import flash.external.*;
test.onRelease = function():Void{
    
ExternalInterface.call("html_alert");

.....but i would like to put it into a class, something like....

PHP Code:
class Test extends MovieClip{
   function 
Test(){
      
this.onRelease = function():Void{
        
ExternalInterface.call("html_alert");
        }
    }

That however will give this error message...

PHP Code:
There is no method with the name 'ExternalInterface'.
                 
ExternalInterface.call("html_alert"); 
Can anyone tell me which step I need to add to get this one up and going? Pretty sure I have to inherit the properties of the ExternalInterface class somehow, but I'm going around in circles here.

Thanks in advance.