5 Replies Latest reply on Apr 12, 2015 5:41 AM by Ned Murphy

    Making stretching banner on AS 2.0

    zeurminall

      Dear friends, please help to solve the problem.
      I have created a stretching banner based on action script 2.0 (100% x90px), on one of the layers added gif button (imported), which is located on the right side of the banner. It is essential that the button does not move when stretching a banner. I would be grateful for any help!



      Stage.scaleMode = "noScale";

      Stage.align = "LT";

       

      var obResize:Object = new Object();

      Stage.addListener(obResize);

      obResize.onResize = function() {Resize()};

      function Resize(){

          //stretching the background

          Fon_mc._width=Stage.width;

          //center the clip

          imggg2._x=Stage.width/2;

      };

      Resize();








      321.jpg