A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: "If" and Scene

  1. #1

    "If" and Scene

    How would you create an "if" command to find out which scene you're currently in. I don't really feel like creating the same identical code for each seperate scene, but rather something like:

    if(_root = "Scene 1"){

  2. #2
    Join Date
    Apr 2001
    Montréal, Québec.
    Don't think you could really do it with scene names. You might want to try with a range of frames. Thus if your Scene 1 holds frame 1 to 50, then something like...

    if(_root.currentframe > 0 && _root._currentframe < 51){

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