- Home /
Flash build giving some errors.(Type was not found or was not a compile-time constant)
hi everyone. i am developing a simple bricks game. Game is working fine in editor but i build it to Flash, it gives me errors. some errors was of using IEnumerator Function, which i handled by using alter ways. but still getting errors which i don't understand. the error is
"D:\UnityWorkspace\BricksGame\Temp\StagingArea\Data\ConvertedDotNetCode\global\GameController.as(167): col: 19 Error: Type was not found or was not a compile-time constant: UnityException."
-----the detail of error------
Error building Player: Exception: java Failed: Loading configuration file C:\Program Files (x86)\Unity\Editor\Data\PlaybackEngines\flashsupport\BuildTools\flex\frameworks\flex-config.xml
D:\Unity Workspace\Bricks Game\Temp\StagingArea\Data\ConvertedDotNetCode\global\GameController.as(167): col: 19 Error: Type was not found or was not a compile-time constant: UnityException.
} catch ($ex: UnityException) {
^
D:\Unity Workspace\Bricks Game\Temp\StagingArea\Data\ConvertedDotNetCode\global\GameController.as(233): col: 18 Error: Type was not found or was not a compile-time constant: UnityException.
} catch ($ex: UnityException) {
^
D:\Unity Workspace\Bricks Game\Temp\StagingArea\Data\ConvertedDotNetCode\global\GameController.as(256): col: 20 Error: Type was not found or was not a compile-time constant: UnityException.
} catch ($ex: UnityException) {
^
D:\Unity Workspace\Bricks Game\Temp\StagingArea\Data\ConvertedDotNetCode\global\GameController.as(299): col: 26 Error: Type was not found or was not a compile-time constant: UnityException.
} catch ($ex2: UnityException) {
^
D:\Unity Workspace\Bricks Game\Temp\StagingArea\Data\ConvertedDotNetCode\global\GameController.as(30): col: 20 Error: Definition UnityEngine:UnityException could not be found.
import UnityEngine.UnityException;
^
thanks in Advance.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
flash build error ? 0 Answers
Xml file not going in APK ... 1 Answer
How to show the flash effect in Unity 2 Answers
Display a (working) webpage inside of unity using flash? 1 Answer