【AS3】FlashDevelop【フリー】 (601レス)
1-

574: 2012/09/12(水)06:08 ID:/jNB9YMr(1/2) AAS
外部リンク[html]:actionsc.web.fc2.com
ここにある足し算をやりたいだけなのに、
C:\xampp\htdocs\flash_test\src\Main.as(23): col: 11 Error: Type was not found or was not a compile-time constant: textField.
C:\xampp\htdocs\flash_test\src\Main.as(23): col: 27 Error: Call to a possibly undefined method textField.
このようなエラーがでてコンパイルできません・・・。
SDKが原因かと思い調べましたが4.6が設定されていました。
FlashDevelopのバージョンは4.04です。
こちらが書いたソースです。アドバイスをお願いします…。
package
{
import flash.display.Sprite;
import flash.events.Event;
public class Main extends Sprite
{
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}

private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
var tf:textField = new textField();
tf.text = "10 * 50";
this.addChild(tf);
}

}

}
1-
あと 27 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ

ぬこの手 ぬこTOP 0.021s