나는 이것을 연구하고 미리 만들어진 템플릿을 사용해 보았지만 아무 소용이 없었습니다. Flash 게임을 염두에두고 FlashDevelop에서 작업하는 실제 기본 HaxePunk 프로젝트를 얻고 싶습니다.FlashDevelop에서 HaxePunk를 사용하여이 오류를 어떻게 지우시겠습니까?
import com.haxepunk.Engine;
import com.haxepunk.HXP;
class Main extends Engine
{
/*override public function init()
{
#if debug
HXP.console.enable();
#end
//HXP.scene = new MainScene();
}*/
public static function main() { new Main(); }
}
나는 플래시 플레이어 프로젝트 또는 NME 프로젝트 (나는이 정말 새로운 해요)로이 컴파일할지 여부를 확실하지 않다 : 실제 기본 튜토리얼 등으로 돌아가서,이 내 코드입니다. 나는 플래시 플레이어 프로젝트로 컴파일하려고하면, 나는 런타임에이 오류가 발생합니다 :
Error: You must have a "project.xml" file or specify another valid project file
when using the 'build' command
: 내가 NME 프로젝트로 컴파일하려고하면
TypeError: Error #2007: Parameter type must be non-null.
at flash.events::EventDispatcher/addEventListener()
at flash.display::Stage/addEventListener()
at com.haxepunk.utils::Input$/enable()
at com.haxepunk::Engine/onStage()
at com.haxepunk::Engine()
at Main()
at Main$/main()
at boot_0b9a/init()
at flash::Boot/start()
at boot_0b9a()
, 나는 컴파일 타임에이 오류가
나는 이것에 대한 많은 정보를 찾지 못했습니다. 여기서 틀린 것은 무엇입니까? 감사.