This content has been marked as final. Show 6 replies
The constraint of sprite property uses the loc of the constrained sprite
and the rect of the constraining sprite to hold the constrained sprite.
So, regardless of the size of the constrained sprite, it's centerpoint,
loc, will never leave the rect of the sprite that constrains it.
This means that if your constraining sprite is smaller than the stage
dimensions and sits inside the stage dimensions, then your constrained
sprite will not leave the stage, regardless of how large it is.
Adobe Community Expert
Hi Rob, thanks for your reply, after to read it, i think the constraining is not the solution that i'm looking for. I must to work with the rect of my sprite and the stage dimensions. Thanks anyway.
By the way, do you know wath is the future of Director with adobe?, will be a new release?.
Originally posted by: SAYEG
I have a moveable sprite in a movie, and sometimes in this movie this sprite goes bigger than the stage, and i want to constrain this sprite in the boundaries of the stage, something like an inverse constrain
I have exactly what you're looking for (I think) here: http://robotduck.com/content/articles/director/misc/dragOversizedImage/index.htm
you are right, Ben, that's exactly wath i'm looking for, thanks a lot; always is good to learn from people with experience like you.
I will try to understand your behavior; again, thanks a lot.