addCallback() et doctype
Posted mai 20th, 2010 by adminVoilà une petite découverte qui m’a fait chercher un bon ptit moment l’autre jour. Voici un exemple:
ExternalInterface.addCallback("callAs", cb);
btn.addEventListener( MouseEvent.CLICK , clickHandler );
private function clickHandler( evt : MouseEvent ) : void
{
if( ExternalInterface.available )
{
ExternalInterface.call( "callJS" );
}
}
private function [...]
Tags: Actionscript3, browser, Bug, html, js


