Klasa: BitmapData
Kompatybilność: ActionScript 1.0, Flash8+
public scroll(x:Number, y:Number) : Void
Przewija obraz o (x, y) ilość pikseli. Obszaru rogów poza przewijanym obszarem są opuszczone bez zmian.
Przykład:
import flash.display.BitmapData;
 import flash.geom.Rectangle;
 
 var myBitmapData:BitmapData = new BitmapData(100, 80, false, 0x00CCCCCC);
 
 var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
 mc.attachBitmap(myBitmapData, this.getNextHighestDepth());
 
 myBitmapData.fillRect(new Rectangle(0, 0, 25, 80), 0x00FF0000);
 
 mc.onPress = function() {
     myBitmapData.scroll(25, 0);
 }
Listing
Ranga: Administrator serwisu Punktów: 0



 
  
				

 
                             
 


 
                        
 
		 
	