3 Replies Latest reply on Feb 22, 2010 11:54 AM by kglad

    scrollRect without Rectangle class

    Roland684-oqZIvV

      Is it possible to use scrollRect without the flash.geom.Rectangle class?

       

      I know the scrollRect can be used like this:

      import flash.geom.Rectangle;
      myMC.scrollRect = new Rectangle(10,10,100,100);

       

      I need to make a flash which doesn't extends outside the stage (bacause loading it from another flash will expose anything outside the stage area). Using a mask is an option, but scrollRect seems very interesting because it would be easier and give greater performance.

       

      But I can not import the flash.geom.Rectangle class (and it seems overkill to import a class just to set x,y,width and height)

       

      How can  use scrollRect without the flash.geom.Rectangle class?