0 Replies Latest reply on Jan 10, 2008 1:54 AM by willhoney

    keeping code in one place

      i have a typical movie, it has five scences on the timelime labelled as scene 1, scene 2 etc.
      each scence has a moviclip in it, this clip is different in each scene
      there are couple of buttons that are the same and appear in the same place in all scenes
      the buttons control the movieclips within the scenes
      instead of putting code in all frames and making different instances of the buttons in each scene i want to have my code in one place controled by if statements depending on where the main movie is
      ie. if movie is at scene 2 then gotoandplay("middle") part of the movieclip in scene 2

      at the moment it only works if i put code and different instances of the button in the same frame, is the above possible?