03-12-2002, 12:36 AM
|
#1
|
|
Registered User
Join Date: Mar 2002
Posts: 35
|
Mouse Out Problem
Hi,
using the code below to make my flash menu disappear when the cursor leaves the menu in an HTML page- What's happening is, when the cursor is over the meny button, the button is looping from UP to OVER , or the button state is competing with this code... making it seem like its looping...The menu does disappear, so that works. Any help would be greatly appreciated!!!
thanks -- C.
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse) == 0) {
closethismenu;
}
}
|
|
|
03-12-2002, 06:02 AM
|
#2
|
|
Addicted To FLASH
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
|
Is closethismenu a function u made, seems so to me,. Anyway try this:
onClipEvent (enterFrame) {
if (!hitTest(_root._xmouse, _root._ymouse)) {
close this menu}
}
__________________
â€* GOD Is Near â€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
|
|
|
03-12-2002, 12:54 PM
|
#3
|
|
Registered User
Join Date: Mar 2002
Posts: 35
|
Hi, That code came from someone in this forum, I tried yours, and it's still doing the same thing. The menu buttons are 1 color in up state and another color in over state, when movie played, menu buttons looping from up to over. Weird- when I change the action of the navigate button to say "stop" at this frame... menu works right but won't disappear on mouse out. I'll mail the .fla to you if you have the time. Thank You for your help!!!
C.
|
|
|
03-12-2002, 01:03 PM
|
#4
|
|
power to the pinK
Join Date: Jul 2001
Location: Atlanta Atlanta ATLANTA!
Posts: 1,527
|
can you zip it up and attach the file here if it's not too huge?
K
|
|
|
03-12-2002, 01:04 PM
|
#5
|
|
Addicted To FLASH
Join Date: Dec 2001
Location: Egyptian in UAE
Posts: 12,436
|
Well seems that u should add nextFrame() action to the button In its MC
any way I don't mind mailing the fla, but try posting it here in *.zip fotmay for the most benfits (more guys will b able to give lott openions)
__________________
â€* GOD Is Near â€*
Questions Don't PM for Questions . Thanks
An eye for an eye, make the whole world blind
_____________________________________________GHANDI
|
|
|
03-12-2002, 01:06 PM
|
#6
|
|
power to the pinK
Join Date: Jul 2001
Location: Atlanta Atlanta ATLANTA!
Posts: 1,527
|
also do you have another bit of code defining "closethismenu" in your .fla? (function) maybe post that too? though it sounds like it's a frame thing
K
Last edited by pinkaboo; 03-12-2002 at 01:08 PM.
|
|
|
03-12-2002, 01:13 PM
|
#7
|
|
Registered User
Join Date: Mar 2002
Posts: 35
|
You guys are awsome... here it is zipped up. The "closethismenu" code is under the navigate MC on the main time line, and I have the "hit" button in the MC, but there is no code under it. Thank You!
C.
|
|
|
03-12-2002, 01:20 PM
|
#8
|
|
power to the pinK
Join Date: Jul 2001
Location: Atlanta Atlanta ATLANTA!
Posts: 1,527
|
after a brief glance, I can't see a function anywhere for closethismenu? will try to get back to you in a bit though, just got given some work work to do :0(
K
|
|
|
03-12-2002, 01:26 PM
|
#9
|
|
Registered User
Join Date: Mar 2002
Posts: 35
|
The code is in layer 1, which is the MC "Navigate Site" - C.
|
|
|
03-12-2002, 01:30 PM
|
#10
|
|
power to the pinK
Join Date: Jul 2001
Location: Atlanta Atlanta ATLANTA!
Posts: 1,527
|
that's the onclipevent code though isn't it? Like Farafiro said, in that snippet you seem to call a function called closethismenu, it's that second bit of code info I'm looking for. ??
K
|
|
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 07:47 AM.
///
|
|