Small wtf moment today. I forgot to instantiate / give a String variable a default value. After appending the string and tracing it, “null” was the first part that showed, see below:
- var test:String;
- test += "Test 1, 2, 3, 4...";
- trace(test);
- // output: "nullTest 1, 2, 3, 4..."
Fix:
- var test:String = "";
Oops! 🙂