Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Page navigation

  1. #1
    Regular Coder
    Join Date
    Sep 2007
    Posts
    264
    Thanks
    19
    Thanked 0 Times in 0 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
    Regular Coder
    Join Date
    Sep 2007
    Posts
    264
    Thanks
    19
    Thanked 0 Times in 0 Posts
    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);
    }

  • #3
    Regular Coder
    Join Date
    Sep 2007
    Posts
    264
    Thanks
    19
    Thanked 0 Times in 0 Posts
    Here's the error:
    1021: Duplicate function definition.
    function release(evt:MouseEvent):void {

  • #4
    Regular Coder
    Join Date
    Sep 2007
    Posts
    264
    Thanks
    19
    Thanked 0 Times in 0 Posts
    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; 04-17-2009 at 02:00 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •