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

Problem with Tween rotation

New Here ,
Jul 03, 2009 Jul 03, 2009

Hello I'm making a tweened rotation using the Tweener transitions. The MC I'm rotating works fine but its scales my MC. How do I prevent the MC from scaling in the rotation?

import caurina.transitions.*;

var rotate:Number = 0;

function anim():void{

rotate +=180;

Tweener.addTween(mc_cinema, {rotationX:rotate, time:1, delay:2, onComplete:anim});

}

anim();

TOPICS
ActionScript
981
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 ,
Jul 03, 2009 Jul 03, 2009

there's nothing in the code you showed that would cause mc_cinema to scale.

do you have other code and what changes to you see in mc_cinema?  or better, post a link to your html/swf.

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
New Here ,
Jul 03, 2009 Jul 03, 2009

Yes it's pretty wierd. I'm going to attach my source file.

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
New Here ,
Jul 03, 2009 Jul 03, 2009

Yes it's pretty wierd. There is no other code that scales my MC. The url of the site is www.cinema.web-division.com. This problem is happening also on other MC Tweens I have made with rotation.

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 ,
Jul 03, 2009 Jul 03, 2009

where in your site are you using that tween?

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
New Here ,
Jul 03, 2009 Jul 03, 2009
LATEST

I got the answer. I don't understand why but the MC I scaled it down to 50 on my timeline not in AS. It may be that when a rotation tween is applied to an already scaled object, it scales it too.

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