1 Reply Latest reply on Feb 27, 2011 12:35 PM by kglad

    How to track scenes viewed and display image A or image B based on scenes viewed

    jmtanner

      I have an interactive story divided into scenes. At the end of each scene a button appears. This occurs on a frame on the timeline.

       

      There are two different buttons that might appear based on whether a prior scene has been viewed or not.

       

      For example, there are Scene_1 and Scene_2. At the end of Scene_2 one of two buttons will appear. The buttons will be either "Go see Scene_1" or "Return to Main Menu".

       

      If the user has already seen Scene_1, Flash will know that and automatically go to the frame in Scene_2 that contains the button "Return to Main Menu".

       

      Conversely, if the user has not seen Scene_1, Flash will know and automatically go to the frame in Scene_2 that contains the button "Go see Scene_1".

       

      I imagine there would be an action frame at the end of Scene_2 that will contain the as2 code to enable this action.

       

      Perhaps something like, but probably not at all like the following:

       

      if ("Scene_1", last frame == true){gotoAndPlay("frame#");}else{gotoAndPlay("frame#");}

       

      Any help is greatly appreciated.

       

      Thanks!

      Jerry T