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 3 of 3

Thread: Linking scenes

  1. #1
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Linking scenes

    Hi

    Just to let you know that I have scoured every single help page, forum and tried just about everthing and it still is not working for me.

    I really hope you can help me. I have created a website in Flash MX Professional 2004 version 7.0. This has approx 20 scenes each of them representing a page.

    I have created buttons to serve as navigation to specified links. For example, the home button will take the browser to the home page, etc. I have tried every single piece of code to try to get this to work, but have had no luck.

    I really need to get the website up and running and am at my wits end. I have put in actionscript, and when I check the syntax, it tells me that there are no errors, but when I test the movie the links do not work at all.

    Or I get random error messages. Is there anyway I can get this to work. I have even tried to use the Flash tutorial which recommended this code:

    goHome_btn.onRelease = gotoAndStop("Scene 1", 1);{
    gotoAndStop("Scene 1", 1);
    };

    but it still doesn't work

    HELP

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    Quote Originally Posted by zarmanievents View Post

    goHome_btn.onRelease = gotoAndStop("Scene 1", 1);{
    gotoAndStop("Scene 1", 1);
    };
    that will obviously not work because instead of assigning an event-handler function for onRelease you have assigned the output of the gotoAndStop function

    thats gotta be

    Code:
    goHome_btn.onRelease = function() {
      gotoAndStop("Scene 1", 1);
    }
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow

  • #3
    New to the CF scene
    Join Date
    Apr 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks. I tried that but now I am getting this error message

    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: Statement must appear within on handler
    goHome_btn.onRelease = function() {


  •  

    Posting Permissions

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