1 Replies - 1319 Views - Last Post: 18 October 2012 - 01:30 AM

#1 lizr0x  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 15-October 12

TypeError: Error #1009

Posted 17 October 2012 - 06:16 PM

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

can someone please help me and tell me whats wrong with my code i dont understand it i havent changed anything in my code

stop();
about_btn.addEventListener(MouseEvent.CLICK, about_page);
function about_page(event:MouseEvent):void {
	gotoAndStop("about");
}
photo_btn.addEventListener(MouseEvent.CLICK, photo_page);
function photo_page(event:MouseEvent):void {
	gotoAndStop("photo");
}
flash_btn.addEventListener(MouseEvent.CLICK, flash_page);
function flash_page(event:MouseEvent):void {
	gotoAndStop("flash");
}
media_btn.addEventListener(MouseEvent.CLICK, media_page);
function media_page(event:MouseEvent):void {
	gotoAndStop("media");
}
resume_btn.addEventListener(MouseEvent.CLICK, resume_page);
function resume_page(event:MouseEvent):void {
	gotoAndStop("resume");
}
home_btn.addEventListener(MouseEvent.CLICK, home);
function home(event:MouseEvent):void {
	gotoAndStop("home");
}


Is This A Good Question/Topic? 0
  • +

Replies To: TypeError: Error #1009

#2 stayscrisp  Icon User is online

  • フカユ
  • member icon

Reputation: 1000
  • View blog
  • Posts: 4,181
  • Joined: 14-February 08

Re: TypeError: Error #1009

Posted 18 October 2012 - 01:30 AM

I can only assume that one of your buttons is null, could you share more of the project?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1