Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tool-tips

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
I want to delay the deployment of tooltips by some arbitrary number of seconds.

When I put a clip to sleep though - it pauses the entire Movie, is there any way to get around this?

Evidently Flash is single threaded.

[bb]
 
don't know what your talking about, but it sounds interesting..care to explain?
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Make sure the tooltip is in a seperate movie_clip then you can just stop it for how ever many seconds you like :

pause_time = 20;
time_start = getTimer();
time_end = Number(time_start)+Number(1000*pause_time);
pause_time = int(Number(((time_end-time_now)/1000))+0.9);

time_now = getTimer();
trace (time_now-time_end);
if (Number(time_now)>=Number(time_end)) {
tellTarget ("/") {
gotoAndStop ("finish");
}
gotoAndStop ("end_timer");
}

call ("start_timer");
gotoAndPlay ("start_timer"); Regards

Big Dave


** If I am wrong I am sorry, but i'm only trying to help!! **

 
Well, I don't want the tooltips just to pop-up on mouseover, they need to be delayed for a second or two, much like any you see in windows, or from a link etc...

I have briefly tried to emulate this behaviour, by using a sleep function inside the tooltip clip to pause it, but it locks the entire Movie.

This maybe in my implementation, I'll try again.
;-)
 
Must've posted exactly same time - please disregard.

[bb]
 
Rather than going with mouseOver to trigger the tool tip could you use a combination of hitTest and getTimer?

This is a similar approach to Dave's suggestion in some ways
and I don't know the layout of your code but roughly it would read...

onClipEvent(enterFrame){
if(this.hitTest(cliponstage)){
showTime=getTimer();
showTime+=2000;
}
if(showTime<getTimer()){
//show tooltip
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top