At 20:49 -0300 07/01/2002, Rodrigo Peres wrote:

>How can i constrain one sprite to a determinated area. I have a big image
>moveable and i want to drag it inside a smaller image in a way that the big
>image only goes when it reachs the boundaries of the smaller
>image..something like goes untill bottom reaches bottom of the smaller one,
>or top reaches the top of the smaller one and so on.

I'm not sure what you're asking here, because you cannot (logically) 
drag a larger image *into* a smaller one.

Do you mean you want the larger image to be dynamically resized to 
fit the dimensions of the smaller? If so, you would do this in two 
steps (I would, anyway):

1. Devise the dragging code so Director knows when the image has been 
successfully dragged; and

2. Use some thumbnail-generating Lingo (such as what I have online 
under free --> howdygoodies) to scale the image down once it's been 
dropped.

-- 

              Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
        Author | Director 8.5 Shockwave Studio: A Beginner's Guide
                    Published by Osborne/McGraw-Hill
         http://shop.osborne.com/cgi-bin/osborne/0072195622.html
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to