A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [CS3] Buttons & Linking them to other Scenes

  1. #1
    Junior Member
    Join Date
    Apr 2008
    Posts
    3

    [CS3] Buttons & Linking them to other Scenes

    Hello everyone, I tried to upload a thread earlier and I don't think it went threw...so I hope this one works (Sorry If I double posted)


    Ok So im doing a project, and I need to have some buttons link to other scenes...and I can't seem to get them function properly....I can get the other buttons to work just fine. But when I tried to link them to another scene I couldn't figure out how to!! I tried linking directly to a frame label within a scene but that didnt work too well!! So please if someone could help me out here?



    -Requesting Help With-
    - Code For Buttons that will make clicking on them Link to other scenes -
    - Explanation of the Process -
    -Using 3.0 and CS3 ONLY Please!-





    And im very sorry If I double posted a thread

  2. #2
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,320
    If you can do without scenes dont use them. Thats about the best advice.
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  3. #3
    Junior Member
    Join Date
    Apr 2008
    Posts
    3
    Yeah I gather that scenes aren't too popular. But currently my group set everything up expecting to use scenes and its a big undertaking(for us) to merge everything together...and we are working on that currently and its turning into a nightmare... So is the code that impossible to link to another scene? I would still like to know how to do it!


    So please if you do know how attempt to explain it as best as possible o.o

  4. #4
    ...dishing dimes on an .fla! pointguard's Avatar
    Join Date
    Dec 2001
    Location
    Cambridgeshire, England
    Posts
    1,017
    Are you makign sure you're talking to the _root. timeline?
    code:

    on (press){
    _root.gotoAndPlay("Scene 2", "frame1");
    }


    ...assuming you use "frame1" as the frame label of the first frame in scene 2, (however you don't need frame labels) -
    _root.gotoAndPlay("Scene 2", 1);

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center