Answer the question
In order to leave comments, you need to log in
How to test the game?
There are problems with the game, the game consists of two parts client side (actionscrpt3) and server side (C# asynchronous socket) sometimes gives an error System.NullReferenceException: Object reference not set to an instance of an object. how to test and understand why an object reference becomes null. what to test and how to be?
Answer the question
In order to leave comments, you need to log in
If I understand correctly, the problem crashes on the client side (since it’s elementary to see it on the server side), if so, then you can do it like this, in each client function, in the very first line, add code something like
var file:File = File.documentsDirectory;
file = file.resolvePath("air_tests/saved_by_AIR.txt");
// create a stream object to read/write, and open in in APPEND mode
var stream:FileStream = new FileStream();
stream.open(file, FileMode.APPEND);
// add a new line to the text file
stream.writeUTFBytes( (new Date()).toString() +"FUNCTION NAME HERE"+ "\n" );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question