hi
sorry if this has been asked before but this is what i’m trying to do:
i have a (all these objects are dynamically created btw) sprite that acts as a viewing area (e.g. 400, 400). in this viewing area i create a mask (400,400) and then a container sprite that will hold an image that is loaded in (the image is considerably larger than the viewing area). i’m trying to drag this ‘container’ sprite but the key is i need to keep it within the viewing area. for example i don’t want to be able to drag the right edge of the image within the viewing area. the left and top are easy but the right and bottom are giving me some hassle. anyone done this or have an idea how to go about it.
thanks