Flash, buttons won't work while dragging MC
- Started
- Last post
- 29 Responses
- Xentic
Hello!
I have a problem with my flash menu. I have a few buttons in a MC and the mc is set to follow the mouse (startdrag etc...) using a clipevent on enterframe.
The dragging works fine. The problem is that I can't click any button while dragging... does anyone know a solutions for this?
thanks!
- fusionpixel0
click a button while dragging?
Humm, how does that work?
You mean while the MC is following the mouse?
- Xentic0
yes, that's what I meant. Do you know a solution?
- UndoUndo0
do you mean clicking a button in an mc you are dragging?
- Xentic0
yep... the mc with the buttons is following the mouse.
- sureshot0
whats your code?
- fusionpixel0
yeah, show us your code. I think I know what you are doing, but I am not sure.
Also describe your set up
MC
-but1
-but2
-but3
--holderMC
-----dragger...and so on
- UndoUndo0
i might be missiing something but if your dragging an mc how can you click on a button within it as dragging is mouse based??
- fusionpixel0
I know, that was my first reaction too, but I guess after seeing his code and layout it will be better to figure out what he is trying to do.
- kyl30
I have a simular problem only I'm doing a mouse replace which works when it just the swf like here:
http://www.dickeyphoto.com/new/e…but doesn't work when I bring the swf into a parent swf. Any way to solve this? Thanks!
- kyl30
this is what my code is based on:
- kyl30
dang this is frustrating! anyone?
- gunforhire0
maybe you looked at this already, but all the examples ive seen use "_root" level properties. if you load into a parent movie, maybe it has to be "_level0."
just a thought. hth!
- gunforhire0
Flash, buttons won't work while dragging MC
Hello!
I have a problem with my flash menu. I have a few buttons in a MC and the mc is set to follow the mouse (startdrag etc...) using a clipevent on enterframe.
The dragging works fine. The problem is that I can't click any button while dragging... does anyone know a solutions for this?
thanks!
Xentic
(Sep 11 05, 11:29)so if i got this right, you cant actually get your cursor over a button until the dragging stops?
i would suggest that maybe onPress disables the drag temporarily so that you can actually get your cursor over a button to click it. then re-enable on Release. Problem is, if you're using enterFrame to startDrag, you'll have to find a a different way to startDrag becuase enterFrame is always true until the mc instance is gone from the stage.
if you wrap your startDrag in a function, you can start/stop it easier.
hope that helps!
- dijitaq0
are you looking for something like this??
then click on any of the buttons ... pk.. pt... py etc
- gunforhire0
usabilty > flash tricks
- kyl30
thanks Ian, I'll look into it
- gunforhire0
dammit how am i supposed to keep track of all these aliases anyway?
happy to help, even if it is kyl3. heh
- kyl30
hehe, I'm not so bad am I, although I'm sure you've heard me at my worst. ; )
anyway I had to target the container movie clip in the parent swf. zing!
- gunforhire0
well at least i got you pointed in the right direction...i think?
nah you're not so bad, especially as a neighbor./ i sure do miss the jelly bean warehouse parties!
- kyl30
yeah you and somebody at the kirupa forum helped tons. I need to remember that forum more often for flash questions.
How's LA treating you?