We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

MovieClip Resize Handles

nixianick
nixianick asked
on
Medium Priority
331 Views
Last Modified: 2006-11-18
Hi

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
Regards
Nick
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2008

Commented:
can you upload and post the SAMPLE FLA

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

Rgds
Aneesh
CERTIFIED EXPERT
Top Expert 2008
Commented:
Hi,

I have sent the update to your mail

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

Rgds
Aneesh

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks alot

This is great

Regards
Nick
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.