A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Switching scenes

  1. #1
    Junior Member
    Join Date
    Jan 2002
    Posts
    10

    Switching scenes

    I know this is probably a simple function, however I am trying to navigate from one scene to another without simply going to just the next or previous. What command would I use, gotoAndPlay?

  2. #2
    Junior Member
    Join Date
    Aug 2002
    Posts
    13

    gotoanplay

    Yep. that way ull be able to select which scene u want it to switch too. Also make sure that u select the right frame at which it'll switch. if it's not a movie, dont forget to put "sto" in ur frame at next scene.

    shaolin_goon

  3. #3
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    You should really use frame labels for this, especially when switching between scenes. for example if you have your action within a movie clip, then you will be unable to change the scene using something like,

    _root.gotoAndPlay("scene", frame);

    instead if you place frame labels on the frame you want to be able to goto you can use

    _root.gotoAndPlay("framelabelname");

    from any scene or clip within the movie.

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