1682 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

This works only for one click, after that nada :D

import caurina.transitions.Tweener;

mc.addEventListener(MouseEvent.CLICK, rotate);

function rotate(e:MouseEvent):void {
    Tweener.addTween(e.target,{rotationY:"180",time:1});
}

TweenLite works fine ofcourse :D

1040 posts Freelance Flash and JavaScript Developer
  • Has been part of the Envato Community for over 8 years
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
+7 more
sike says

oops… I can’t get the point. :)

3752 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Located in Spain
  • Has sold $125,000+ on Envato Market
  • Helped several times protecting Envato Market against copyright violations
+9 more
pezflash says

I’m not quite sure about your question, but begin deleting the quote marks in the y reference: rotationY:180

1682 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says
I’m not quite sure about your question, but begin deleting the quote marks in the y reference: rotationY:180

Passing values as Strings will make the tween relative to the current value.

Thats what I want obviously.

In the end, and i cant believe I am saying this, I decided to use adobe tween class for this flip :D

2309 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 10+ members
  • Has sold $100+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
theflyingtinman says
Passing values as Strings will make the tween relative to the current value.

Are you sure? I don’t recall ever seeing anything about that in the Tweener docs. Are you thinking of mc_tween (which does perform relative tweening when the value is in quotes)

1682 posts Envato Elite Author
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
Tean says

You are right, I actually never checked, I assumed it had a TweenLite sintax :P

So I actually have to write it like this, and it works:

Tweener.addTween(e.target,{rotationY:e.target.rotationY + 180,time:1});

thank God I dont have to use Adobe Tween Class…

3752 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Located in Spain
  • Has sold $125,000+ on Envato Market
  • Helped several times protecting Envato Market against copyright violations
+9 more
pezflash says

Uhmmm i was not far away from your solution, finally! :P

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by