[COLOR=black][FONT=Arial]Hello all. I am new to the forum and need help converting some classes developed in actionscript 2 into actionscript 3. The classes create a reusable selection system framework that I am using here to create a menu. The system is made up of two base classes and two extending classes used to customize it till your hearts content.[/FONT][/COLOR]
[COLOR=black][FONT=Arial] [/FONT][/COLOR]
[COLOR=black][FONT=Arial]I have converted a lot of it already, but have run into an error that I just can’t seem to figure out. I have attached a zip file containing both the old AS2 and new AS3 class files and an example [/FONT][/COLOR][COLOR=black][FONT=Arial]fla[/FONT][/COLOR][COLOR=black][FONT=Arial] of each.[/FONT][/COLOR]
[COLOR=black][FONT=Arial] [/FONT][/COLOR]
[COLOR=black][FONT=Arial]You will notice that the AS3 demo menu buttons have no title like the AS2 ones do. I have commented the code that sets the title in the AS3 class because that is what is causing the error. It is line 92 in the UIButton AS3 class. Once you uncomment it the compiler throws Error #1009: Cannot access a property or method of a null object reference. [/FONT][/COLOR]
[COLOR=black][FONT=Arial] [/FONT][/COLOR]
[COLOR=black][FONT=Arial] I have done some googleing on the error but I can’t seem to solve it. I am sure that it is a logic error in converting to actionscript 3. [/FONT][/COLOR]
[COLOR=black][FONT=Arial] [/FONT][/COLOR]
[COLOR=black][FONT=Arial]Thank you all in advance for any help you maybe able to provide.[/FONT][/COLOR]
ryan