Flash HitTest
- Started
- Last post
- 5 Responses
- madino
I am working on a flash flv player and am running into one problem (well ok, more than one, but lets concentrate on one)
The drag keeps breaking out of the area. I have an interval running check location constantly. So what is the best way to check to make sure the mouse is with in the location of the bar?
Any Suggestions,
Here is a copy (undesign)
http://www.madino.com/tester/
- jkosoy0
maybe use onPress and onRelease instead of whatever it is you're doing. Using hitTest will determine if an object is touching or within t he boundaries of another object. If you're trying to hitTest the mouse to the draggable movieclip, obviously when I roll out of its area hitTest will be false even though I haven't let go of the bottom.
Translation: I don't see why you need hitTest here. You might be overcomplicating it.
Or maybe I'm just mistaking what you're trying to do.
- madino0
maybe I did not explain the problem well.
If you click and hold scruber to drag... while still pressed... you leave the swf area... it breaks the drag function.
this does not happen every time. But it does happen
- stewart0
i see what you mean.
maybe add an "if" function
like
if ( _xmouse > loadbar._width ) then stopdrag.
- madino0
still not working...
anyone know how the macromedia scrollbar comp allows you to dray outsite the browser??
- madino0
last try.... anyone?