Objekt schatten programmieren [Flash 7]
| Beiträge: 90 Wohnort: Leipzig Registriert: Sep 2006
| 06.09.2009, 10:59
Hi lieben,
ich möchte dass jedes Objekt Schatten auf BackGround wirft.
Habt ihr grob Idee, wie man so was programmiert oder vielleicht gibt es so ein Effect in Flash.
MLG Iordan | Geändert von jordanoooo am 06.09.09 um 11:00 Uhr | |
| | Beiträge: 1776 Wohnort: Laimbach 6 1/2 Registriert: Nov 2002
| 06.09.2009, 15:41
Servus
ActionScript:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | import flash.filters.DropShadowFilter;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var tl:MovieClip = this;
tl.createEmptyMovieClip("tooltip_mc",3000);
tl.tooltip_mc._x = 50;
tl.tooltip_mc._y = 250;
tl.tooltip_mc.lineStyle(1,0x666666);
tl.tooltip_mc.beginFill(0x999999,100);
tl.tooltip_mc.lineTo(0,60);
tl.tooltip_mc.lineTo(20,60);
tl.tooltip_mc.lineTo(20,80);
tl.tooltip_mc.lineTo(40,60);
tl.tooltip_mc.lineTo(200,60);
tl.tooltip_mc.lineTo(200,0);
tl.tooltip_mc.endFill();
tl.tooltip_mc.cacheAsBitmap = true;
tl.tooltip_mc.createTextField("tooltext_txt",this.tooltip_mc.getNextHighestDepth(),0,0,200,60);
tl.tooltip_mc.tooltext_txt.wordWrap = true;
tl.tooltip_mc.tooltext_txt.html = true;
tl.tooltip_mc.tooltext_txt.multiline = true;
var filter:DropShadowFilter = new DropShadowFilter(10, 30, 0x000000, .4, 10, 10, .8, 1, false, false, false);
var filterArray:Array = new Array();
filterArray.push(filter);
tl.tooltip_mc.filters = filterArray;
startToolTip(tl.tooltip_mc);
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "Verdana";
my_fmt.size = 19;
my_fmt.color = 0x333333;
tl.tooltip_mc.tooltext_txt.setNewTextFormat(my_fmt);
tl.tooltip_mc.tooltext_txt.htmlText = "Flashhilfe.de RustyCake";
function startToolTip(mc) {
mc.onEnterFrame = function() {
var xTT:Tween = new Tween(this, "_x", Elastic.easeOut, this._x-20, this._parent._xmouse, 25, false);
var yTT:Tween = new Tween(this, "_y", Elastic.easeOut, this._y-75, this._parent._ymouse, 25, false);
};
}
|
Des ist das wichtige, "var filter:DropShadowFilter = new DropShadowFilter(10, 30, 0x000000, .4, 10, 10, .8, 1, false, false, false);"!Bitte keine Fragen, zu Flash per PM. Dazu ist das Forum da. Danke MFG_RustyCake!
"Wer tanzen will, muss erst gehen lernen" | | | Beiträge: 90 Wohnort: Leipzig Registriert: Sep 2006
Themenautor/in
| 06.09.2009, 15:52
Alles klar,
aber die Klasse flash.filters.DropShadowFilter kann nicht geladen werden.
Arbeite gerade CS4 Flash
MLG Iordan | | | Beiträge: 1776 Wohnort: Laimbach 6 1/2 Registriert: Nov 2002
| 06.09.2009, 15:56
Ich hab kein CS4, also kann ich Dir leider nicht sagen, wie des da heisst!
Gib einfach mal "DropShadowFilter" in der Flashhilfe ein, der wird Dir schon das richtige ausspucken.
Ausserdem seh ich gerade das Du Flash 7 angegeben hast, da gab es sowas noch nicht.Bitte keine Fragen, zu Flash per PM. Dazu ist das Forum da. Danke MFG_RustyCake!
"Wer tanzen will, muss erst gehen lernen" | Geändert von RustyCake am 06.09.09 um 15:57 Uhr | |
|
| Ähnliche Beiträge zum Thema | 02.11.2020 - frliberti 04.10.2019 - pmvTaucha.4 |
|
Flashhilfe.de Flash Platform Tipps & Tutorials Flash Platform Andere Programmiersprachen Jobangebote Diskussionen
Flashhilfe News 
Regeln & Bedingungen
|