In a Flex Mobile Project, i'm using a Singleton class for my data like this:
private static var instance:ApplicationData;
/**
* Returns the sole instance of this Singleton class;
* creates it if it does not already exist.
*
* @return Returns the sole instance of this Singleton class;
* creates it if it does not already exist.
*/
public static function getInstance():ApplicationData {
if (!ApplicationData.instance){
ApplicationData.instance = new ApplicationData(arguments.callee);
}
return ApplicationData.instance;
}
somewhere in my view script block tag:
private var applicationData:ApplicationData = ApplicationData.getInstance();
When a export the release build this cause a crash. I can see just a blanck screen at startup and nothing else.
In debug version it's working, just in release build!
Any idea? It's an AIR bug?
thanks
North America
Europe, Middle East and Africa
Asia Pacific