YouTube AS3 APIこのシンプルなコードは、ずっと前から怒られていました。すべてが大丈夫だった。 しかし、数日前にいくつかの問題。 早い(今月18日まで)すべて正常に動作します。 AS3 APIを使用するFlash Playerです。YouTube AS3 API(onReadyはもっと機能しません)
public function Main()
{
super();
Security.allowInsecureDomain("*");
Security.allowDomain("*");
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.SHOW_ALL;
this._loader = new Loader();
this._loader.contentLoaderInfo.addEventListener(Event.INIT,this._onLoaderInit);
this._loader.addEventListener(IOErrorEvent.IO_ERROR,this.errorHandlerIOErrorEvent);
this._loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,this.errorHandlerIOErrorEvent);
this._loader.uncaughtErrorEvents.addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR,this.onUncaughtError);
this.loadTime = new Date();
this._loader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3");
}
private function _onLoaderInit(param1:Event) : void
{
this.player = this._loader.content;
this.player.addEventListener("onReady",this.onPlayerReady);
this.player.x = 0;
this.player.y = 0;
addChild(DisplayObject(this.player));
this._loader.contentLoaderInfo.removeEventListener(Event.INIT,this._onLoaderInit);
this._loader = null;
}
function onPlayerReady(param1:Event) : void // start from 18th this month , onReady dont fired
{
}
誰かがこの問題を知っていますか、それを修正しますか? Thx。
これはずっと前に償却されていませんでしたか? – quantomworks
ありがとうございます。 –
問題が見つかりました。 –