-
Hi flash guru!
How do you constrain a draggable menu to your main movie's bounderies (main movie window size) ?
a very good example of what im trying to achieve can be found at http://www.autodemo.com , looking at one of their sample demos.
thanks a million!
-
OK I just did this last week for the first time. It's not to tough but basically you need to work it out by a bit of trial and error.
Obviously you need to have the constrain to rectangle box checked in your startdrag scripty bit. Now the constraint works from the centre of your MC which is not necesarily the literal centre but from the crosshairs for that particular MC. So for example if the crosshairs are not in the centre of your MC but in the top left corner you can use zero for the top and left constraints but you would have to subtract the dimensions of your MC from the dimensions of your stage to get the right and bottom constraints.
Thats how you do it
Hope this helps you
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
|