0 Replies Latest reply on Jul 12, 2006 3:34 AM by maith

    Draging a box with button attached on stage excuting button problem

    maith
      Hi,
      I have a box on the stage, which is a movie clip. I opened this movie clip and placed a button on it. I want to be able to drag the box on the stage and the button to move with it. Also I want to be able to press the button , which take me to frame 2. I have done all of this but the button will not activate. The code I have written is:
      box_mc.onPress =function(){
      startDrag(this);}
      box_mc.onRelease=function(){
      stopDrag()};
      stop();
      I opened the movie box (where i placed the button) I wrote the following code:
      gotoframe2_btn.onRelease=function(){
      gotoAndStop(2)};
      However, I can drag the map (with button attached) but cannot press the button, to perform the action, to bring me to Frame 2. I have created a 2nd Frame in the Timeline on the main stage and also on the Timeline when i open the movie of the box.
      Hope you can help
      Thanks
      Paul