Thema: Los geht´s!
Einzelnen Beitrag anzeigen
Alt 19-07-2005, 22:27   #45 (permalink)
georgem
x39
 
Benutzerbild von georgem
 
Registriert seit: Oct 2004
Ort: St.Gallen, Schweiz
Beiträge: 1.261
@franky303

super.

hab das Beispiel noch erweitert indem die Matrizenwerte dynamisch verändert werden:
ActionScript:
  1. var bitmap = new flash.display.BitmapData(50, 50, false, 0xFF000000);
  2. var mat2 = {a:1, b:0.1, c:0.1, d:1, e:0, f:0, tx:0, ty:0};
  3. for (x=0; x<50; x++) {
  4.     for (y=0; y<50; y++) {
  5.         bitmap.setPixel(x, y, x*256/50);
  6.     }
  7. }
  8. var starter:Number = 0;
  9. this.onEnterFrame = function() {
  10.     starter += 1;
  11.     _root.createEmptyMovieClip("bloop", 0);
  12.     with (_root.bloop) {
  13.         var mat2 = {a:Math.sin(starter/20), b:0.1, c:0.1, d:Math.cos(starter/20), e:0, f:0, tx:0, ty:0};
  14.         beginBitmapFill(bitmap, mat2);
  15.         moveTo(100, 100);
  16.         lineTo(300, 100);
  17.         lineTo(300, 300);
  18.         lineTo(100, 300);
  19.         endFill();
  20.     }
  21. };

Aber: *g* jetzt bringt es mehrfach den IE zum ABSTURZ????
__________________
The Sleeper Must Awaken

www.margaris.de | www.exosolar.net

Geändert von georgem (19-07-2005 um 22:30 Uhr)
georgem ist offline   Mit Zitat antworten