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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dragability

Status
Not open for further replies.

quickblueink

Technical User
Apr 5, 2001
57
US
Here's a good one:
first off, check out [a href="[URL unfurl="true"]http://quickblueink.com"[/URL]]quickblueink.com[/a] to see what i'm talking about...and to download the .fla go to the "sample" page.
NOw here's what I need to figure out. when the scene loads it starts dragging this button around that, when pressed brings up the page menu. on the "resume" page the drag is limited to the left half of the page. but if the cursor goes to the right half of the page it continues to drag.
The question is, how do i make the cursor drop the button when it leaves the left half of the page, then pick it up again when the cursor comes back to the left side.
the reason for this is so that the buttons on the right half of the page will be clickable.
thanks yall.
M.austin
 
haven't checked your page yet but how about this. Create two buttons, one covering each side of your page. On the left button put the actions:

on (rollOver) {
startDrag ("yourclip");
}


and on the other, to stop the dragging:

on (rollOver) {
stopDrag ();
}


dave
davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
hi again quick

just a ps for future reference, to insert a link within your post you don't require the <ahref> or
Code:
 http://
tags, just type the url straight in. davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
pps: oops, you'd better slect &quot;lock to center&quot; when you insert that action, as well as constraint dimensions.

I'm off to check out your link, depending on the size of your file I'll get back to you again asap.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
hi M.austin

some really nice effects going on there!

managed to fix it, to see the changes I made take a look at the button actions on the dragged button as well as the pop-up menu buttons. There's also a control clip in there, within it there's a 'trace' action which you might want to remove which traces the _xmouse, and the drag is set to stop at 350px in the x-axis.

I also removed scene 1 and removed unused items from the library to make uploading quicker for me (my connection's really bad).


dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
alright dav!
You're amazing! it took me a minute to see the purpose of the control actions in the actual menu buttons, but i got it now and it's awesome. i fixed it last night but didn't upload it, so i should have the finished product up and running in the next 48 hours.
One question though, you said i should take out the trace action from the control clip. wouldn't that eliminate the ability to stop the drag at 350px

just keepin ya honest. you've been a godsend!

Thanks
M.austin
 
hi M.austin

trace actions do nothing to affect actionscripting, there used merely for debugging your movie, so it is very safe to delete it.

Glad to hear it's ok for you.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top