Jump to content


Photo

Actionscript 3 problem - null object reference.


  • Please log in to reply
No replies to this topic

#1 suecoghlan

suecoghlan

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 28 March 2009 - 06:05 AM

Hello there
I am using Actionscript to get buttons to navigate to a designated frame on my timeline. It does not work, and i get this error message:

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


I am a complete newbie to actionscript and cannot figure out what I am doing wrong. Anyone out there who can help?

Big thank you in advance.

Below is the script I have used:

stop();

function gohomepage_movie (e:MouseEvent):void{
gotoAndStop("homepage_movie");
}
steve_btn.addEventListener(MouseEvent.CLICK, gohomepage_movie);

function gointeriors_page (e:MouseEvent):void{
gotoAndStop("interiors_page");
}
interior_btn.addEventListener(MouseEvent.CLICK, gointeriors_page);







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users