Stage.scaleMode = "noscale"; import mx.transitions.Tween; import mx.transitions.easing.*; var tipOver:Boolean = false; function showTip(tip:String,picURL:String,alpha:Number,speed:Number){ tooltip_mc.tippic_mc.pic.contentPath = picURL; if(tooltip_mc.tippic_mc.pic.contentPath == ""){ tooltip_mc.tippic_mc._visible = false; tooltip_mc.tipnoimg_bg._visible = true; }else{ tooltip_mc.tippic_mc._visible = true; var mcXScale:Tween = new Tween(tooltip_mc.tippic_mc, "_yscale", Regular.easeIn, 0, 100, .2, true ); tooltip_mc.tipnoimg_bg._visible = true; } tooltip_mc.tip.text = tip; var inAlph = _root.tooltip_mc._alpha; var inTween:Tween = new Tween(tooltip_mc, "_alpha", Strong.easeOut, inAlph, alpha, 2, true); } function hideTip(){ if(tooltip_mc.tippic_mc.pic.contentPath == ""){ }else{ var mcXScale:Tween = new Tween(tooltip_mc.tippic_mc, "_yscale", Regular.easeIn, 100, 0, .2, true ); } var outAlph = _root.tooltip_mc._alpha; var ouTween:Tween = new Tween(tooltip_mc, "_alpha", Strong.easeOut, outAlph, 0, 2, true); }