HarlekinAlpha
Grünschnabel
Huhu Jungs und Mädels,
ich habe folgendes Problem ich wollte ein abgerundetes Rechteck erstellen lassen aber das funktioniert nicht obwohl ich alles nach Anleitung gemacht habe wie auf der Adobe Seite
Der Code
Die Fehlermeldung lautet:
1046: Typ wurde nicht gefunden oder war keine Kompilierungszeit-Konstante: Void.
Flash CS3 Version 9.0
ich habe folgendes Problem ich wollte ein abgerundetes Rechteck erstellen lassen aber das funktioniert nicht obwohl ich alles nach Anleitung gemacht habe wie auf der Adobe Seite
Der Code
Code:
this.createEmptyMovieClip("rectangle_mc", 10);
rectangle_mc._x = 100;
rectangle_mc._y = 100;
drawRoundedRectangle(rectangle_mc, 240, 180, 20, 0x99FF00, 100);
function drawRoundedRectangle(target_mc:MovieClip, boxWidth:Number, boxHeight:Number, cornerRadius:Number, fillColor:Number, fillAlpha:Number):Void {
with (target_mc) {
beginFill(fillColor, fillAlpha);
moveTo(cornerRadius, 0);
lineTo(boxWidth - cornerRadius, 0);
curveTo(boxWidth, 0, boxWidth, cornerRadius);
lineTo(boxWidth, cornerRadius);
lineTo(boxWidth, boxHeight - cornerRadius);
curveTo(boxWidth, boxHeight, boxWidth - cornerRadius, boxHeight);
lineTo(boxWidth - cornerRadius, boxHeight);
lineTo(cornerRadius, boxHeight);
curveTo(0, boxHeight, 0, boxHeight - cornerRadius);
lineTo(0, boxHeight - cornerRadius);
lineTo(0, cornerRadius);
curveTo(0, 0, cornerRadius, 0);
lineTo(cornerRadius, 0);
endFill();
}
}
Die Fehlermeldung lautet:
1046: Typ wurde nicht gefunden oder war keine Kompilierungszeit-Konstante: Void.
Flash CS3 Version 9.0