hey Mike,
 
thankx for pointing out "you are creating the tooltip every frame! ", i didnt realise it :).
so i made it 2 functions
 
on (rollOver) {
 makeTip("Home")
 this. {
  ShowTip();
 };
}
 
that sort it out i guess,
 
abt tweening, the tweening sint trigered by any event, it starts playing as soon as it gets to the scene. this is realy weird, when i have NO code at all in the mouse hover event, it still dont play the frames :S:S
hmmm
 
Hesh
----- Original Message -----
Sent: Tuesday, May 18, 2004 10:14 AM
Subject: [fugli] Re: Tweening???

Hey Hesh,
 
Not sure how much assistance I can be without having the file to check but...
 
for starters, check the following line (my aplogies if this is just typeo):
 
this.attachMovie("tip_mc", "btnTip_mc", this);     // Make sure you are specifying
                                                                      // a depth for the attached clip (not 'this')
                                                                      // to aviod clearing out a clip that may
                                                                      // have valuable code on it (ie tween code)
 
also check that the event that does the tween is not attached to the onEnterFrame of the main timeline.
If it is, you will be overwriting it with your onEnterFrame (onRollOver) and then clearing it completely (onRollOut).
 
Another thing to note is that you are creating the tooltip every frame! Try creating the tooltip onRollOver the just moving/adjusting it onEnterFrame.
It is overkill to be attaching the clip every single frame.
 
 
Any questions I'm happy to help,
 
Mike
 
 
 
 
 
 
----- Original Message -----
From: Hesh
Sent: Tuesday, May 18, 2004 3:56 AM
Subject: [fugli] Tweening???

hmm this is very weird
 
i made this small site on a fly, for my sister.
 
and i have this script which displace a tool tip like thing when the mouse hover over it
 
function ShowTip(txt) {
 this.attachMovie("tip_mc", "btnTip_mc", this);
 btnTip_mc.tip_txt.text = txt;
 btnTip_mc.tip_txt._width = btnTip_mc.tip_txt.textWidth;
 btnTip_mc._width = btnTip_mc.tip_txt.textWidth+4;
 this.btnTip_mc._visible = true;
 this.btnTip_mc._x = (_root._xmouse+10);
 this.btnTip_mc._y = (_root._ymouse-15);
}
 
on the btns i have
 
on (rollOver) {
 this. {
  ShowTip("Home");
 };
}
on (rollOut) {
 this.> this.btnTip_mc._visible = false;
}
 
some how, evr since ive done this, NONE OF MY TWEEN SEEMS TO PLAY, not on the root or in any MC in the whole movie
 
when i hover over the button it starts playing. it as in the root time line starts to play,
so i took all the code out of the on(rollover) event and had
 
on (rollOver) {
 //
 };
 
still the same only when i hover over it plays???
 
anything like this happend to anyone before?
 
Hesh
---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to