Error:1009 simple actionscript problem I think!

  • Hi,

    I'm trying impliment a simple map viewer I've aquired, that has some nice effects over and above the google map plug in.

    When I've added it to the flash CS3 example plugin to get it working I'm getting this error which is stopping me get any further.


    Code
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    	at flashcs3exampleplugin1_fla::OokMapViewer_81/addEventListeners()
    	at flashcs3exampleplugin1_fla::OokMapViewer_81/init()
    	at flashcs3exampleplugin1_fla::OokMapViewer_81/frame1()

    It seems to be something to do with the 'addEventListeners().

    It's probably something quite obvious, anyone got any ideas?


    There is a lot more here but the error seems to be coming from the init(); function

  • I'm guessing the problem is because you are using addEventListeners() without an object reference. If I'm not mistaken, you add an event listener to a display object - like a button or text field object, or a display object container - like the stage or a movie clip, or root...

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!