| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2001
Posts: 26
|
Hi all, this may sound stupid but can someone please tell me how i can make an movieclip instance follow the mouse but yet it is constrained to a rect? so when the mouse is out of the rect area the MC doesn't follow anymore. Any comments or sugestions would be greatly appreciated, tia.
heres an example nav i'm trying to do: http://phenomenon.org/intense/ Cheers |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
startDrag ("target", true, 100, 100, 400, 300);
Where 'target' is the instance name of your draggable clip. And the numbers, in order are Left Bound Tope Bound Right Bound Bottom Bound The bounds are measured in pixels from the tope left hand corner of the stage. Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Mar 2001
Posts: 26
|
Thanks again Jesse
u seem to know alot of flash, can u recommend any good actionscripting books for beginners to intermediate like myself? thnx.Cheers |
|
|
|
|
|
#4 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
[begin rant]
Well 8 weeks ago I buoght 2 books from Amazon.com so that I could read them and tell you people what I think about them. Only problem is they still aint here. I could write my own book in 8 weeks for God's sake! [end rant] Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| constrain MC proportions? | threat45 | Other Flash General Questions | 0 | 10-07-2005 05:52 PM |
| constrain & intersect problem... | ozhai87 | ActionScript 1.0 (and below) | 0 | 09-18-2005 04:49 AM |
| Constrain Movie Clip Boundaries | millrlyt | ActionScript 1.0 (and below) | 6 | 12-22-2003 04:38 PM |
| drag circle and constrain to other circles | gamma | ActionScript 1.0 (and below) | 2 | 01-28-2002 06:52 PM |