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

ScaleX without squeeze

Participant ,
Oct 18, 2015 Oct 18, 2015

I have a health bar graphic which has slanted ends (so it's a parallelogram, not a rectangle), and when I try to animate it in Flash to shrink anchored on the left center, the slanted ends gradually get straighter and straighter.

How do I get around this?

healthbar_graph.png

This is my image. It is scaled up in Flash by 200 percent.

TOPICS
ActionScript
518
Translate
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

Enthusiast , Oct 18, 2015 Oct 18, 2015

the only way is to cut the end and convert it to movieClip then animate it on x axes at the same time of scaling.. use the bar width as x value for "end_mc".

otherwise it'll be stretched.

Translate
Enthusiast ,
Oct 18, 2015 Oct 18, 2015

use width property instead of scaleX

Translate
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
Enthusiast ,
Oct 18, 2015 Oct 18, 2015

oh it's not a stroke then you'll get the same result! 😕

Translate
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
Enthusiast ,
Oct 18, 2015 Oct 18, 2015

the only way is to cut the end and convert it to movieClip then animate it on x axes at the same time of scaling.. use the bar width as x value for "end_mc".

otherwise it'll be stretched.

Translate
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 ,
Oct 19, 2015 Oct 19, 2015

Ok, that'll do it! Thanks!

Translate
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
Enthusiast ,
Oct 19, 2015 Oct 19, 2015
LATEST

You're welcome

Translate
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