all groups > flash actionscript > june 2006 >
You're in the

flash actionscript

group:

onRollOver _visible = true Problem


onRollOver _visible = true Problem Timespider
6/4/2006 11:27:59 PM
flash actionscript: Hello, I have an animation that shows a tool tip when you mouse over it. My
problem is that it disapears as quick as it apears. Every thing is in the main
time line & the code is in its own actions layer. Will I need to set an
interval or something & how do I do it <a target=_blank
class=ftalternatingbarlinklarge href="http://www.cudas.co.nz/test.html">You can
view the animation here.</a>
My code is below Thanks for any help




registerTT_mc._visible = false;

circle_mc.onRollOver = function() {
registerTT_mc._visible = true;
}

circle_mc.onRollOut = function() {
registerTT_mc._visible = false;
}
Re: onRollOver _visible = true Problem Timespider
6/5/2006 12:00:00 AM
Re: onRollOver _visible = true Problem Timespider
6/5/2006 12:00:00 AM
Thanks for the help Craig. I think I have figured out the problem after lots of
hair pulling. I had the frame rate set to 60 frames per second but had the
movie happening only over 30 frames so I think it restarted every 30 frames or
every half a second & thats why it dissapeared & needed the mouse to roll over
again. I think I can manage to get the text inside the movie as another movie &
get it to continue to play until the mouse roll out event. I hope this is the
correct way to say it (for other newbies like me to understand)
Re: onRollOver _visible = true Problem Craig Grummitt
6/5/2006 12:00:00 AM
Re: onRollOver _visible = true Problem Craig Grummitt
6/5/2006 12:49:40 AM
Do you have a button handler on registerTT_mc? If so then if the user rolls
over it, flash will first send rollouts to anything the user has currently
rolled over. So when you make it visible, (assuming it covers a similar area
to circle_mc) it will trigger circle_mc to rollout, and then receive a
rollover. solution would be to remove any button handlers on registerTT_mc.
Re: onRollOver _visible = true Problem Timespider
6/5/2006 2:45:12 AM
Thanks for repling Craig, I don't quite understand what you are saying
(actionscript pretty new to me). But the code you see is the entire lot , & the
circle_mc is the top layer, I don't have any buttons just movie clips, if it
shows the registerTT_mc shouldn't that stay visible until the roll out event?
could you explain a bit more. Thanks again.
Re: onRollOver _visible = true Problem Craig Grummitt
6/5/2006 3:25:36 AM
Re: onRollOver _visible = true Problem Timespider
6/5/2006 4:34:40 AM
Re: onRollOver _visible = true Problem Craig Grummitt
6/5/2006 4:51:39 AM
Re: onRollOver _visible = true Problem Timespider
6/5/2006 9:44:17 PM
My last post as the answer was incorrect but I have it working satisfactory now
it was because each layer which I have four of (plus actions) needed the code
posted originally, so the code posted now makes it work fine. & thanks Craig
for the support & not leaving me alone in actionscript land & to all you other
guys that help us all out, I hope I'll be able to do the same one day.



registerTT_mc._visible = false;

circle_mc.onRelease = function() {
getURL("http://www.cudas.co.nz/jubilee.html","_blank");
}
circle_mc.onRollOver = function() {
registerTT_mc._visible = true;
}

circle_mc.onRollOut = function() {
registerTT_mc._visible = false;
}

////
jubileeImage_mc.onRollOver = function() {
registerTT_mc._visible = true;
}

jubileeImage_mc.onRollOut = function() {
registerTT_mc._visible = false;
}
jubileeImage_mc.onRelease = function() {
getURL("http://www.cudas.co.nz/jubilee.html","_blank");
}
///
registerTT_mc.onRollOver = function() {
registerTT_mc._visible = true;
}

registerTT_mc.onRollOut = function() {
registerTT_mc._visible = false;
}
registerTT_mc.onRelease = function() {
getURL("http://www.cudas.co.nz/jubilee.html","_blank");
}
///
circleLine_mc.onRollOver = function() {
registerTT_mc._visible = true;
}

circleLine_mc.onRollOut = function() {
registerTT_mc._visible = false;
}
circleLine_mc.onRelease = function() {
getURL("http://www.cudas.co.nz/jubilee.html","_blank");
}
AddThis Social Bookmark Button