0 Replies Latest reply on Sep 16, 2006 7:32 AM by jottebotte

    need help : scrollRect

      if i use scrollRect as a mask/scroller... how can i get the "unmasked" height of the masked content.. because.. if i do this test..

      //create a MC
      import flash.display.BitmapData;
      import flash.geom.Rectangle;
      var myBitmapData:BitmapData = new BitmapData(400, 300, false, 0x00CCCCCC);
      var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
      mc.attachBitmap(myBitmapData, this.getNextHighestDepth());

      //Set scrollRect
      var window:Rectangle = new Rectangle(0, 0, 200, 150);
      mc.scrollRect = window;

      mc.onPress = function() {

      then.. the trace will output "150"

      Lets say the content was randomly/remotely set..so i would have to somehow be able to read the height..can that be done?