Another DX question

Thursday, September 30, 2004 by paxx | Discussion: Skinning

Is there a way to set an object to detect when it's beeing "dragged over"?


I'm making this widget and I have an object that you drop files onto. I'd like to have the object's opacity change from say 70% to 100%.  onMouseEnter doesn't work. It works if you have nothing on your mouse, but if you are dragging something, it has no reaction. I also tried onSetFocus. No go there either.


Anybody knows?

eieio
Reply #1 Thursday, September 30, 2004 9:48 PM
I don't know DX scripting very well, but is there a positional check? If an object was either on top or under another object. Similar to Z order?
paxx
Reply #2 Thursday, September 30, 2004 9:56 PM

It could probably work if I was dragging an object on top of another, but I'm dragging files (JPGs, BMPs).


But wait... maybe if I can track the mouse's position... I'll give that a try. Thanks for the tip.

paxx
Reply #3 Thursday, September 30, 2004 10:05 PM
It works!  Thanks!!!
eieio
Reply #4 Friday, October 1, 2004 6:13 AM
hehe, well you're welcome, but if anything I just gave you a little push.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01