|
-
I got the code and it worked but If i want to constrain to rectangle where do i put the dimesnsions
-----------------------------------
on (press) {
drag = true;
xd = _x-_root._xmouse;
yd = _y-_root._ymouse;
Mouse.hide();
}
on (release, releaseOutside) {
drag = false;
xfinal = _root._xmouse;
yfinal = _root._ymouse;
Mouse.show();
}
on (release) {
}
------------------------------------
plz help I'll be thankful
-
Designer, Programmer, Musician
-
Prid - Outing
Hi, angelhdz, I'm fine thank you, how about you? 
You shoud really consider reading the date posts were posted, because this one was posted like 10 years ago, and checking this guy's last activity shows that he was last active in 2005, which is like 7 years ago, so I don't think he'll be replying soon with the FLA file XD
LOLZ
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
-
Designer, Programmer, Musician
Oh...my...god...i swear I reed "2012" -_-
You can notice I'm dawn and sleepy xD
I was searching for smooth drag because i have an issue with that hehe. I have this window on the wall, you have to slide to open, the on drag works, but not great. It follows a movieclips boundaries (contenedor), it is like
Actionscript Code:
window.startDrag(false, contenedor._width)
and it seems to do the job, you drag the window and it only slides on x coordinates, not y. But the window movieclip get out from it's original position! I checked the contenedor movieclip registration point, is left centered, I tried changing the registration point right, up center, down center, down left, down right, up right, up left, etc...and also on the window movieclip, lol. The window is in its position, but as soon as I press it to drag it, it moves like half the pixels up.
-
Designer, Programmer, Musician
Ok, I "weirdly" fixed it by wrapping the windows movieclip and the contenedor movieclip in a new movieclip, selected both, move them half pixels down, and put all the code inside that new created movieclip. It is weird that this doesn't work in the main timeline , but yes inside a movieclip...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|