0 Replies Latest reply on Aug 25, 2006 4:02 PM by XMXMXMX

    Problem setting focus

    XMXMXMX
      I have used the following script:

      this.createEmptyMovieClip("image1_mc",99);

      //Image 1 Propertys
      setProperty(image1_mc,_xscale,33);
      setProperty(image1_mc,_yscale,33);
      image1_mc._x = 10;image1_mc._y = 57;
      loadMovie("1.jpg",image1_mc);
      this.image1_mc.focusEnabled = true;
      if (num <=1){image1_mc._alpha = 30;};

      however when i test the movie the image has no focus. if i create the movie on the stage and then load the image it has focus but then i cant swap the depth with an on(release) command.

      the script i have used for changing the depth is set on the movieclip actions pane and is as follows:

      on(release){
      if (_x >= 300){
      set ("num","3");
      this.image5_mc.setDepthTo(988);
      tween(["_x","_yscale"], [107,100], 1,easeInOutExpo);
      tween(["_y","_xscale"], [15,100], 1,easeInOutExpo);
      tween("_alpha",100,3);
      }
      if (_x < 190){
      set ("num","0");
      image5_mc.swapDepths(getNextHighestDepth());
      tween(["_x","_yscale"], [340.4,33], 1,easeInOutExpo);
      tween(["_y","_xscale"], [57,33], 1,easeInOutExpo);
      tween("_alpha",30,3);
      }
      }

      Can anyone help?