ActionScript 3.0 とか絶対ムリwwwPart2 (220レス)
ActionScript 3.0 とか絶対ムリwwwPart2 http://mevius.5ch.net/test/read.cgi/swf/1234695717/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
必死チェッカー(本家)
(べ)
自ID
レス栞
あぼーん
リロード規制
です。10分ほどで解除するので、
他のブラウザ
へ避難してください。
135: Now_loading...774KB [] 2010/11/27(土) 11:37:05 ID:PEPTp1g+ 昨日のつづき プロパティを追加できる自作ボタンクラスを作ったんですがSimpleButtonからキャストできません クラスの作りかたがダメなんでしょうか? package{ import flash.display.SimpleButton; public dynamic class SimplePropertyButton extends SimpleButton{ public function SimplePropertyButton(){ super(); } } } 他の処理 if ( btn[ i ] is SimpleButton ){//ボタン検出したら(ムービークリップの場合は素通り) var bf :SimpleButton = new SimplePropertyButton();//× 強制型変換に失敗しました var bf :SimplePropertyButton = new SimpleButton();//× 関連しない可能性が高い型 〜 に暗黙で型変換されています var bf :SimplePropertyButton = new SimplePropertyButton();//× 次の行で 強制型変換に失敗 bf = SimplePropertyButton( btn[ i ] );//キャスト btn[ i ] = bf;//内容を元に戻す } btn[ i ].foo = プロパティ追加 http://mevius.5ch.net/test/read.cgi/swf/1234695717/135
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.018s