Flash question

  • Started
  • Last post
  • 2 Responses
  • Kiko

    I have a scene in flash with an empty action script layer that plays some frames bacwards:

    function Movement() {
    if (_root._currentframe > _root.mytarget){
    prevFrame();
    }else if (_root._currentframe < _root.mytarget){
    nextFrame();
    }else{
    stop();
    }
    }
    this.onEnterFrame= Movement;

    the buttons that control the frame are in a movie clip with the following code:

    on(release){gotoAndStop(5);

    _root.mytarget=5;
    }

    when the scene is previed alone it works fine however when I preview the whole movie the button takes the movie to frame 5 of Scene one.

    Any ideas please?

  • jpea0

    i know this probably isn't welcome, but you'd probably ditch your troubles with it by building it with frame labels instead of scenes. scenes are finicky (not the technical term of course)

  • ptrdo0

    scenes actually publish into segments of the same timeline, but then don't really work that way [as jpea says]. Best to not use them, but if you must, then reference frame labels instead of numbers.