MovieClip Resize Handles


I have a moveclip which is needs to be resizable by the user

Inside the movieclip i have a resize handle that when clicked and dragged resizes’ the movieclip

The movieclip is a simple long diamond shape going from Top-Left diagonally down to Bottom-Right

What I have at the moment is the handle is currently in the Bottom-Right of the clip and resizes from there
This works fine and i am also able to limit the size of the resize box using "startDrag(this, false, 20, 20, 100, 100);"

What i need is a resize handle to work with a secondary movieclip that is the same as above but has the diamond running from Top-Right diagonally to Bottom-Left
Therefore i want the resize handle in the Bottom-Left and presumably will need to resize into negative numbers.

I just can’t figure out the code to swap it round!

This is my original code for the Resize in the Bottom-Right.

this.onPress = function() {
    startDrag(this, false, 20, 20, 100, 100);

      this.onMouseMove = function() {
            this._parent.diamond._width = this._parent.diamond._x + this._x + this._width;
            this._parent.diamond._height = this._parent.diamond._y + this._y + this._height;

Please help
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh ChopraCommented:
can you upload and post the SAMPLE FLA

or send it by email (my email is in my PROFILE)

Aneesh ChopraCommented:

I have sent the update to your mail

I have also fixed the depth issue....
and created sample for each side resizing..


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nixianickAuthor Commented:
Thanks alot

This is great

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.