View Full Version : tooltip won't stay visible
n_moshun
November 1st, 2003, 09:44 PM
i am attempting to simulate a floating toolitp that will stay visible when i rollOver a movie clip that is actually a logo. Here is my code:
MovieClip:
onClipEvent(mouseDown)
{
getURL("http://www.narcotikDeign.com", "_self");
}
on(rollOver) {
_root.narctip._visible=true;
}
toolTip:
onClipEvent (enterFrame)
{
_root.narctip._visible = false;
}
i hope this makes sense..if not, can someone please hlp me fil in the blanks? thanx in advance.
lostinbeta
November 1st, 2003, 10:03 PM
It's because you are running the _root.narctip._visible=false onEnterFrame.
on(rollOver) only works when the clip is rolled over, not the whole time the mouse is over the clip.
Also, onClipEvent(mouseDown) is for when the mouse is down ANYWHERE in your movie, so you might want to change that on (press)
I don't know exactly what your whole setup is, but it seems to me the best route would be on (press) {
getURL("http://www.narcotikDeign.com", "_self");
}
on (rollOver) {
_root.narctip._visible = true;
}
on (rollOut) {
_root.narctip._visible = false;
}
n_moshun
November 1st, 2003, 10:23 PM
when i rollOver, the tooltip stays visible only for an instant. if u have another suggestion then holla, but i'll keep working until i figure this out. thanx again.
lostinbeta
November 1st, 2003, 10:27 PM
Did you remove the onClipEvent (enterFrame)
{
_root.narctip._visible = false;
} from the other clip? Since as stated, that was the cause of your problem.
n_moshun
November 1st, 2003, 10:32 PM
ahh yes! i replaced the onClipEvent(enterFrame)... with
_root.narctip._visible=false on frame 1 of the main timeline. It works perfectly now.
n_moshun
November 1st, 2003, 10:39 PM
for some reason, the text in the dynamic text box shows
_level0.narctip.gotonarcotik instead of the text that i wanted displayed..any reason why? by the way, to all bachelors, if you don't already know, a George Foreman grill is a godsend. Get yours today!
lostinbeta
November 1st, 2003, 10:41 PM
You probably have the same var name and same instance name on the same textbox. That's my guess.
Nice plug for the George Foreman grill... I have one, don't use it... I grill the manly way :P :beam:
n_moshun
November 1st, 2003, 10:47 PM
my god i was just being careless. i had originally intended on playing around with loading data from a text file, but decided agaiinst it. i forgot to omit the var. we need more like u lostinbeta...good lookin out...
n_moshun
November 1st, 2003, 10:50 PM
p.s. the manly way? i see you're in philly...so am i to believe that you're on your deck [or your stoop if you're in west philly] with the charcoal and the firestarter? if so, you MIGHT be more of a man than me...or maybe you're of eskimo descent.;-]
lostinbeta
November 1st, 2003, 10:51 PM
Common mistake, happens to everyone. It's maddening :beam:
And trust me, no one needs more than 1 of me, even 1 is enough to drive everyone crazy :x ;)
lostinbeta
November 1st, 2003, 10:52 PM
Originally posted by n_moshun
p.s. the manly way? i see you're in philly...so am i to believe that you're on your deck [or your stoop if you're in west philly] with the charcoal and the firestarter? if so, you MIGHT be more of a man than me...or maybe you're of eskimo descent.;-]
LOL, I don't have a deck or a stoop, my grill is in the back "yard". During the winter months I grill on the stovetop...lol :trout: But theres always spring and summer for outdoor cooking WOOOOO!!!!!!
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.