• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

html5 scaleX moves the object.

Explorer ,
Dec 21, 2017 Dec 21, 2017

Copy link to clipboard

Copied

hi all.)

noob question:

i have an object on stage, with regpoint attached to the left side of it, like this:

forumscale.jpg

now, after applying this line of code:

this.orange.scaleX=80;

it looks like this:

forumscale2.jpg

how can i fix this kind of behavior?

Views

339

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 21, 2017 Dec 21, 2017

80???  that's increasing orange's width 800 times.

use the magnifying glass to significantly increase the mag of the left side of orange so you can make the necessary correction to align the transform point to the left.

Votes

Translate

Translate
Community Expert ,
Dec 21, 2017 Dec 21, 2017

Copy link to clipboard

Copied

80???  that's increasing orange's width 800 times.

use the magnifying glass to significantly increase the mag of the left side of orange so you can make the necessary correction to align the transform point to the left.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 24, 2017 Dec 24, 2017

Copy link to clipboard

Copied

thank you.)

i had to use a sniper scope with a microscope function for this, but it did the trick.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 24, 2017 Dec 24, 2017

Copy link to clipboard

Copied

LATEST

you're welcome.

hint:  with the magnifier tool selected you can drag a rectangle around the region you want to magnify (to fill your viewable region).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 21, 2017 Dec 21, 2017

Copy link to clipboard

Copied

As kglad suggested, at that percentage increase, any small offset to that registration point will blow out the position.

Make sure you have snapping features on, snap to objects with snap to pixels usually does the trick.

Drag the registration point and it will snap onto the closest handle, or zoom in and snap to an edge of the image.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines