エラーによって送信操作またはロード操作が失敗すると、Flash® Player によって IOErrorEvent オブジェクトが送出されます。 デバッグ版の Flash Player を使用すると、リスナーのないエラーイベントを確認できます。Flash Player によって、IOErrorEvent コンストラクタの text パラメータで定義されたストリングが表示されます。入出力エラーイベントのタイプは、IOErrorEvent.IO_ERROR のみです。 例を表示 関連項目
自分の探し方が悪いのか、 TwitterにOAuth認証してつぶやくAIR/Flex/ActionScript3のサンプルが見つからず、四苦八苦しました。 なんだかtwitterでAS3が適当な扱いを受けているような印象が……。 ということで、twitterに投稿するサンプルコードをメモ書き。 準備OAuth認証して、Access Tokenを取得しておく必要があります。 前回のエントリを参照。 Access Tokenは、ユーザが連携アプリの認可を取り消さない限り有効です。 認証ヘッダBASIC認証と同じように、HTTPヘッダに'Authorization'ヘッダを記述する必要があります。 このヘッダを作るのが非常に面倒くさいです。 前回のエントリ同様、iotashan氏のライブラリを用います。 consumer tokenにはアプリのConsumer tokenを、 access to
as3からMovieClipのメソッドからduplicateMovieClipがなくなってしまいましたね。 手軽にMovieClipの複製ができないなーと思って、へこんでいたんですが。。。 代わりとなるような方法を紹介してみます。 手順は以下のようになります。 Objectクラスにはクラスオブジェクトへの参照であるconstructorというプロパティがあります。 クラスへの参照がとれるということは・・・・。 これでnewしちゃえばいいんじゃ!? やってみます。 //MovieClipを継承したCircleクラスのインスタンスを生成 var circle:MovieClip = new Circle(); circle.x = stage.stageWidth / 2; circle.y = stage.stageHeight / 2; this.addChild(circle); //c
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く