문제

I have included the built-in function Math using

#include "Math.as"

while publishing (.swf) I'm getting an error:

Error in line 3. Math.as file not found.

올바른 솔루션이 없습니다

다른 팁

They should be top-level, meaning they are always accessible and you don't really need to import them.

Please take a look why import is different from include:

include statements are essentially a copy and paste of the content inside the included ActionScript file.

Why would you want to copy paste something that is already there?

EDIT:

If you've made your own, custom Math.as file and would like to use that, the error states that the path to your Math.as file is incorrect.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top