(I wonder how many users you guys who’s first post is a “help me” thread? It must be a lot.)
What I’m trying to do is simply test how to load array variables from a mySQL database using PHP and Flash.
(I don’t know much about PHP and mySQL, that’s being handled by another person for the project I’m working on with him.)
My code compiles, however when I enter the url that the php is located at ( [COLOR=#000099][FONT=Arial]http://www.jtworld.net/data_test.php[/FONT][/COLOR] ) and press the but to retrieve the variables, I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at loaders::Retreuvak/loadvars()[C:\Users\user\Documents\flash est_files\loaders\Retreuvak.as:33]
at Load_test_main/doIt()[C:\Users\user\Documents\flash est_files\Load_test_main.as:30]
I’ve looked it up and apparently it’s most commonly received when someone is trying to reference a movieclip that hasn’t been loaded or added to the display yet, however since I’m not even using movieclips here I’m not sure what I’m doing wrong.
I’ve provided a .zip of my files along with the php script that is being hosted on the server, so I won’t post my code here and take up pagespace.