Skip navigation
Wildwolf12300
Currently Being Moderated

Reference Error 1069?

Apr 22, 2012 10:30 AM

I'm trying to link buttons from a homepage to individual pages though it isn't working, whenever I change it the pages flick through continuously in a cycle. Help!

 

Coding:

1homeb.addEventListener (MouseEvent.CLICK,gotoAndStop [1, "Scene 4"]) ;

     mhomeb.addEventListener (MouseEvent.CLICK,gotoAndStop [1, "Scene 5"]) ;

     dhomeb.addEventListener (MouseEvent.CLICK,gotoAndStop [1, "Scene 3"]) ;

     abouthomeb.addEventListener (MouseEvent.CLICK,gotoAndStop [1, "Scene 2"]) ;

 

Reference error is Error:#1069: Property Scene 4 not found on number and there is no default value

    at homepage_fla::MainTimeline/frame1 ()

 

Any help will be appreciated...

 
Replies
  • Currently Being Moderated
    Apr 22, 2012 11:48 AM   in reply to Wildwolf12300

    You cannot specify event listeners that way and your gotoAndPlay/Stop 's are written incorrectly as well (no brackets).  Also, you should not be naming instances starting with numeric characters.  You are best off avoiding try to shortcut the code.  For each button your should have code like the following...

     

    homeb.addEventListener (MouseEvent.CLICK, homebClicked);

     

    function homebClicked(evt:MouseEvent):void {

         gotoAndStop(1, "Scene 4") ;

    }

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 22, 2012 3:12 PM   in reply to Wildwolf12300

    You should show your code and the complete error messages

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points