私はactionscript 3.0にかなり慣れていませんが、上記のエラーが発生し続けています。私のコードは
stop();
Lamp.addEventListener(MouseEvent.CLICK,lookatlamp);
function lookatlamp(event:MouseEvent){
Dialogue.text = "It is a very bright lamp. It hurts your eyes.";
}
Room.addEventListener(MouseEvent.CLICK,standup);
function standup(event:MouseEvent){
gotoAndStop(2);
}
フレーム 2:
stop();
Table.addEventListener(MouseEvent.CLICK,lookatthetable);
function lookatthetable(event:MouseEvent){
gotoAndStop(4);
}
FirstDoor.addEventListener(MouseEvent.CLICK,gotonextroom);
function gotonextroom(event:MouseEvent){
gotoAndStop(3);
}
フレーム 3:
stop();
Inspctdr.addEventListener(MouseEvent.CLICK,lookatthedoor);
function lookatthedoor(event:MouseEvent){
Dialogue.text = "It is a metal door with a shiny silver handle.";
}
完全なエラーは次のとおりです。
TypeError: Error #1034: Type Coercion failed: cannot convert flash.text::TextField@119c83d1 to flash.display.MovieClip.
at flash.display::MovieClip/gotoAndStop()
at Untitled_fla::MainTimeline/standup()
と
TypeError: Error #1034: Type Coercion failed: cannot convert flash.text::TextField@119c8449 to flash.display.MovieClip.
at flash.display::MovieClip/gotoAndStop()
at Untitled_fla::MainTimeline/lookatthetable()
私は何を間違えましたか?