Old 08-03-2007, 09:24   #1 (permalink)
estazor
Registered User
 
estazor's Avatar
 
Join Date: Jan 2007
Posts: 74
Anyone ever encounter this?

Well I'm working on a small drawing application that a friend and I worked on. Just trying to kink out some bugs that are still lingering and there is one that is really bothering me. I've been trying to figure out how to fix it but so far nothing that I have tried is working.

So, basically here is the problem. I have two sliders that determine the size and the "distance", how fuzzy the bush is, of the brush. Now for the most part it works fine but when you drag the little guy to either ends of the slider it doesn't stay down. The little tracker keeps following the mouse.

So I'm curious if anyone else has encountered this. It annoys me so much becuase this seems like such a simple thing. I guess that's how it always goes haha.

If you want to check out the bug for yourself here is a link.
http://virtualpaint.cias.rit.edu/
  Reply With Quote
Old 08-03-2007, 10:01   #2 (permalink)
John Good
+
 
Join Date: May 2005
Location: Tropical Networks
Posts: 1,321
ha ha ha you did this and you don't know how to handle drag and drop ?
I'd love to see your code...

drop targets variables must be a real mess.
__________________
Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
  Reply With Quote
Old 08-03-2007, 10:12   #3 (permalink)
estazor
Registered User
 
estazor's Avatar
 
Join Date: Jan 2007
Posts: 74
lol the target is fine it's just a simple this.startDrag and this.stopDrag.

I'm telling ya when it comes to the real complex stuff I'm perfectly fine fixing them but it's always the little simple problems that usually throw me a curve ball.
  Reply With Quote
Old 08-03-2007, 10:13   #4 (permalink)
John Good
+
 
Join Date: May 2005
Location: Tropical Networks
Posts: 1,321
post your code. I'll throw an eye.
__________________
Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
  Reply With Quote
Old 08-03-2007, 10:18   #5 (permalink)
estazor
Registered User
 
estazor's Avatar
 
Join Date: Jan 2007
Posts: 74
Alright here's the code, I probably just need some fresh eyes on it. This is just for one of the sliders since I doubt anyone would need to see code for both since they're essentially the same. Sadly I can't work on this in the current lab I'm in since there is no Flash installed but discussions about it never huts :P.


Code:
blurSlider.track_mc.onMouseDown = function() { startDrag(this,true,0,0,100,0); } blurSlider.track_mc.onRelease = function() { stopDrag(); }

Also in case you're wondering, yes blurSlider is on the main timeline and yes track_mc is inside of it. So the paths are all correct.
  Reply With Quote
Old 08-03-2007, 10:54   #6 (permalink)
Sandwichera
Registered User
 
Join Date: Feb 2007
Posts: 2
Try defining an onReleaseOutside too to "double" the stopDrag. Yes, i saw this before but i cannot remember the way i solved it :P sorrrrry
  Reply With Quote
Old 08-03-2007, 10:56   #7 (permalink)
estazor
Registered User
 
estazor's Avatar
 
Join Date: Jan 2007
Posts: 74
Yea I tried doing an extra stopDrag when the person did a onRollOut but it didn't take sadly.
  Reply With Quote
Old 08-03-2007, 11:07   #8 (permalink)
John Good
+
 
Join Date: May 2005
Location: Tropical Networks
Posts: 1,321
Quote:
Originally Posted by estazor
Alright here's the code, I probably just need some fresh eyes on it.

it needs more than fresh eyes, it needs a buch of conditionals kid !
__________________
Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
  Reply With Quote
Old 08-03-2007, 11:13   #9 (permalink)
estazor
Registered User
 
estazor's Avatar
 
Join Date: Jan 2007
Posts: 74
yea, yea who needs conditionals really? :P

I was considering that. I guess when I get home I'll give it a shot.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8