Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 10-05-2004, 21:14   #1 (permalink)
Neuer User
 
Registriert seit: Apr 2003
Ort: USA
Beiträge: 130
dynamische Maske

ich erstelle eine dynamische maske, die einen mc so maskiert, dass ein Ausschnitt in der Mitte des MC's zu sehen ist.
ich kann zwar den maskenauschniit zeichnen, aber das maskieren funktioniert leider nur fuer den ersten teil der erstellten maske
kann mir da jemand weiterhelfen?
ActionScript:
  1. nRad = 10
  2. this.__nWidth = 200
  3. nHeight = 150
  4. Block = _root.createEmptyMovieClip("block", depth);
  5.     with (Block) {
  6.             beginFill(0x0000ff,100);
  7.             lineStyle(1, 0x000000,0);
  8.             moveTo(0,0);
  9.             lineTo(Stage.width,0);
  10.             lineTo(Stage.width,Stage.height);
  11.             lineTo(0,Stage.height);
  12.             lineTo(0,0);
  13.             moveTo(nRad, 0);
  14.             lineTo((this.__nWidth - nRad), 0);
  15.             curveTo(this.__nWidth, 0, this.__nWidth, nRad);
  16.             lineTo(this.__nWidth, (nHeight - nRad));
  17.             curveTo(this.__nWidth, nHeight, this.__nWidth - nRad, nHeight);
  18.             lineTo(nRad, nHeight);
  19.             curveTo(0, nHeight, 0, nHeight - nRad);
  20.             lineTo(0, nRad);
  21.             curveTo(0, 0, nRad, 0);
  22.             endFill();
  23.     }
  24. my_mc.setMask(Block)
osoful ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 05:09 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele