Web Analytics Made Easy -
StatCounter Page navigation - CodingForum

Announcement

Collapse
No announcement yet.

Page navigation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Page navigation

    I'm using the actionscript 3.0 to goto and play frame 30 which is what my products page is on, only problem is when I want it to go to frame 25 where my home page is, it says I have a duplicate function. Help?

  • #2
    Here's the code I used.
    Code:
    stop();
    productbtn.addEventListener(MouseEvent.CLICK, release);
    function release(evt:MouseEvent):void {
    gotoAndPlay(31);
    }
    
    homebtn.addEventListener(MouseEvent.CLICK, release);
    function release(evt:MouseEvent):void {
    gotoAndPlay(25);
    }

    Comment


    • #3
      Here's the error:
      1021: Duplicate function definition.
      function release(evt:MouseEvent):void {

      Comment


      • #4
        EDIT: Wow... I've been so overwhelmed with complicated stuff, that I was looking for a complicated answer. I tried something simple and it worked. Thanks for the help anyway guys.
        Last edited by IFeelYourPain; Apr 17, 2009, 08:00 AM.

        Comment

        Working...
        X