Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Come On....I need Help...

Status
Not open for further replies.

SHARKY99

Programmer
Oct 25, 2001
473
CA
I still have a problem with my drag.

I'm using RollOver not OnPress And RollOut stops the drag.

The problem is IT JUST WON'T STOP THE DRAG

And YES it's constrain, can only move from left to right...

I remember that when i took my flash course, it happenned but i can't remember the solution......

PLEASE HELP ME.....

Thanks >:):O>
 
Make your .fla available for download!

Regards,
mywink2.gif
ldnewbie
 
OldNewbie

I don't have a server to put it on... Where can i put it??? Or should i mail it to you???

Thanks Sharky99 >:):O>
 
E-mail: hit my handle, and read the note!

No fast reply promises! I do have a day job, I should be getting back to!

Regards,
mywink2.gif
ldnewbie
 
It's ok with me. I'm working myself (on a trial period) in Montréal...

Thanks
 
sounds like a path problem or something really simple..send me the fla..you have about a hour for i'm off to school..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
virt2001 on it's way..... Thanks

Sharky99 >:):O>
 
it's empty..send it again..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Problems with hotmail on it's way for good. I double checked.

Thanks 4 ur patience

Sharky99 >:):O>
 
ok bro i'm off to school now but what i can tell you from a quick glance is this..you have menu sit..men_sit_drag_mc....drag men....those are your three mc's that make this happen..and the way you have the script set up it is actually working the way your telling it to..the only problem is i think your wanting it to stop drag, well obviously..but in fact it is..the only time it doesn't is when it's over or under the mc..the reason it still does is because it's still in the constraints..atleast i think..seems there would be and easier way to do this..but i have no more time, gota go..and another thing is you have to target those mc's thru all of that..your just using on rollover do this..

should be:
on (rollOver) {
_root.mc name.mc name.mc name.startdrag blah blah..

have to look again when i get in..confusing that little get up you got going there..will have another look later..

logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Thanks bro i'm off too, i'll catch you tomorrow.

Thanks

Sharky99 >:):O>
 
ok bro after about a hour on this i give up..i tried changing the script by adding _root. and targeting the mc,s to even taking out the drag_men mc and trying it all by itself out side of your dynamic menu..it just won't work...it has something to do with it not detecting the on rollout..it is working the way you have and in fact should..changed the script to on press and on release and it works fine..but like i said it won't detect the rollout and stop the drag..however, on roll over it starts the drag right, then on roll out the mouse hand stays active and the drag doesn't stop, unless you click the mouse outside of the constraint and then it stops the drag..so it has something to do with it not detecting the on rollout..i tried everything, and have no solution..the only thing i can think of is maybe your masking square that you have with the hole in it, maybe make it a mc that detects if the mouse is over it, upon detection

_root.drag_men.stopdrag();

you know what i'm saying..probably is a better solution but not for me..off to bed so will look to see if you get this going or not..maybe making the mask a mc to detect is the key..but i'm done and off to bed..seems like it would work..

maybe oldnewbie can go you one better..once again, sorry for no help..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Sharky,
Ça marchera pas! Don't think it will work... For one simple reason: if you use rollover to start the drag, you're allways sort of dragging the movie clip even if you constrain it, and since you never really can rolloff of it (since you're dragging it - even, as I say, if you constrain it), rolloff can't stop the drag. That's also why it works with press and release.
You could probably achieve the effect you want, starting the drag with an onClipEvent and (for constraint) a mouse position test.
I've put a short example together. It works so-so on the drag (which I find never really works well! - and especially at 12 fps) but get problems (don't know why!) when hovering over buttons!
I can post a link to it, if you want to see it!

Best I can do!

Regards,
mywink2.gif
ldnewbie
 
Thank you both ( "virt2001" & "oldnewbie" )

Yesterday i made a new test where i have a button on top of it all, but then again there's some wrong.

Button: RollOver( startDrag mc drag constrain bla bla...

RollOut stop drag but the problem is top & bottom

RollOut left or right= no problem
RollOut top or bottom= won't stop the *%$!@£¢± drag....X-)

Any hint??

Thanks you guys rock...

Sharky99 >:):O>

p.s. i'm pretty new on the forum and i'm allready an addict..
 
like old said bro it won't work..it doesn't detect the roll out..it seems to think it's always on rollover..is a pretty cool little navigation you have there but i think you will have to re-think that whole thing..it just won't work..

did you try making the mask a mc to detect the roll out?..old?.would that work?.
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Ok but the last thing i did should work.

Starting from scratch : 1 button named ie. detect
1 mc(will be dragged)named drag


that's it.

So when i rollover "detect" start drag "drag"
when i rollOut "detect" stop drag

Shouldn't it work????

Thanks virt

Sharky99 >:):O>
 
i'm lost..let me know if it does..
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top