【发布时间】:2011-11-26 02:20:37
【问题描述】:
我正在尝试在符号内的某个框架中使用 AS3 gotoAndPlay,我的目标框架在另一个符号内,即 “Carrera”(类名)。通过从库中拖动,将两个符号放置在场景中。
我试过了:
MovieClip(carrera).gotoAndPlay(1);
错误输出:
TypeError: Error #1034: Type Coercion failed: cannot convert carrera$ to flash.display.MovieClip.
at fondoUcreativa/frame500()
也尝试过:
carrera.gotoAndPlay(1);
编译器错误:
Symbol 'fondo Ucreativa', Layer 'Layer 2', Frame 500, Line 4 1061: Call to a possibly undefined method gotoAndPlay through a reference with static type Class.
【问题讨论】:
标签: actionscript-3 movieclip goto