It may be obvious to most Flash programmers that order of operation is key to running a program. What may not be so apparent is to what order to apply properties to a TextField class so that it gets rendered properly at runtime. Continue reading…
Odd TypeErrors When Loading and Parsing XML in AS3
Recently I was running into this issue with three TypeErrors when loading an XML file. The following errors were:
TypeError: Error #1088: The markup in the document following the root element must be well-formed.TypeError: Error #1089: Assignment to lists with more than one item is not supported.TypeError: Error #1090: XML parser failure: element is malformed.
The errors that were getting thrown were not consistent and made no sense as the XML file was, in fact, well formed.I did a bit of research and found some interesting things out on the erros. Continue reading…
Actionscript 3: Reference to Stage is Null
While writing a custom Class in Actionscript 3 today I came across an issue that took me a little bit to figure out where the compile error was coming from. I was getting the wonderful error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
After a bit of troubleshooting I discovered that a reference to the stage in my Class was returning null. Continue reading…