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.
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: 1769 Wohnort: Laimbach 6 1/2 Registriert: Nov 2002
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"