Well... my english isn't so goog, but let's try to explain better :-)

Imagine a black background (sprite) and over it a big image that goes out of
the stage because it's size. I want to drag it to see all of it, but when
the edges of the bigger image begins visible it stops so that the user can't
see the black behind it. The same effect that we can apply to a smaller
image confined to another bigger, but in tis case only to limit the larger
image to pass the limits of the smaller ( that is the borders os interface).

Thank's

Rodrigo
BRAZIL *****

on 7/2/02 11:23 AM, Howdy-Tzi at [EMAIL PROTECTED] wrote:

> 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.

-- 


[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