ссылку на класс я получил

Код AS3:
import flash.display.*;
import flash.net.URLRequest;
var url:String = "http://api.skype.com/detection/detection_as3.swf";
var urlReq:URLRequest = new URLRequest(url);
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);
loader.load(urlReq);
addChild(loader);
function getClass(className:String):Class
{
try
{
return loader.contentLoaderInfo.applicationDomain.getDefinition(className) as Class;
}
catch (e:Error)
{
throw new IllegalOperationError(className + " definition not found in ");
}
return null;
}
function completeHandler(e:Event):void
{
trace("loaded");
var myClass:Class = getClass("com.skype.detection::Detection");
trace(myClass.isInstalled());
}
теперь пишет
Цитата:
|
Монтажный кадр 1, слой "Слой 1", кадр 1, строка 30 1180: Вызов предположительно неопределенного метода isInstalled.
|