I have a tooltip bubble and when its called near the edge that items tooltip is too long … so what i was thinking to do is just move the tooltips xposition to whatever the width is - current mouse position … so here is my code… it detects the edge just fine
function updateTip(e:Event):void{
if(tooltip.x + tooltip.width > stage.stageWidth){
TweenLite.to(tooltip,0.5,{autoAlpha:1,x:stage.mouseX-tooltip.width,y:stage.mouseY-15});
}else{
TweenLite.to(tooltip,0.5,{autoAlpha:1,x:stage.mouseX+10,y:stage.mouseY-15});
}
}
the problem is when it tweens to the visible location the ELSE statement kicks in and tells it to go back to the mouse position… mmmmm so its flickering…
anyone got suggestions?