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

Resize one side of sprite and interrupt tween

Guest
Jun 25, 2013 Jun 25, 2013

Hey,

In my Actionscript 3 program I would like to resize a sprite, but only one one side. The bottom position, left side and right side shouldn't change, only the top (stretching). However, I have no idea how to accomplish this.

The second problem that has to do with resizing the sprite, is that I would like to interrupt the resizing with a keyboard event. When the sprite is resizing, a user should be able to press a button. This event should be excecuted before the resizing (tween?) has finished. Is this possible?

Hopefully someone can help me.

Thanks in advance

TOPICS
ActionScript
521
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
Community Expert ,
Jun 25, 2013 Jun 25, 2013

you want to resize part of a sprite or a movieclip?

if a sprite, was that something you created with the drawing api?

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
Guest
Jun 25, 2013 Jun 25, 2013

At the moment a sprite, but I'm not limited to that choice.

And it is indeed created by the drawing api, but this is also open for discussion. Do you have an idea how to accomplish what I desire?

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
Community Expert ,
Jun 25, 2013 Jun 25, 2013
LATEST

you need to use separate objects to control separate parts of your sprite.  ie, create child sprites for each part you need to independently size.

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