boz
boz

Reputation: 21

Dang Error #1009 !

I'm building a simple flash site for a friend who has a spa.

I keep getting this error:

Error #1009: Cannot access a property or method of a null object reference.
    at spa7_fla::MainTimeline/frame1()

through the process of commenting out code, i've narrowed down to my link section:

vox_link.addEventListener(MouseEvent.CLICK,gotoVox);
function gotoVox(evtObj:Event):void {
    var voxSite:URLRequest=new URLRequest("http://www.voxmundiproject.com");
    navigateToURL(voxSite, "_blank");
}

With this section commented out, i don't get the 1009 error. When the code is active, I get the error.

My code syntax is correct so I'm stumped.

Does someone have an idea what my be wrong?

Thanks!

Upvotes: 1

Views: 162

Answers (2)

Matrix
Matrix

Reputation: 9

THis is a very late response XD but try URLLoader instead of URLRequest

Upvotes: 0

Shiki
Shiki

Reputation: 16808

The error says that you are using an object (accessing methods/properties) that is null. From what I see, it's probably vox_link that is null here or does not exist.

Upvotes: 1

Related Questions