1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 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

1007 posts Freelance Flash and JavaScript Developer
  • Microlancer Beta Tester
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 7-8 years
  • Interviewed on the Envato Notes blog
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+2 more
sike says

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

3744 posts
  • Won a Competition
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Spain
  • Referred between 200 and 499 users
+5 more
pezflash says

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

1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 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
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 10 and 49 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 100 and 1 000 dollars
  • United States
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)

1675 posts Envato Elite Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Author had a Free File of the Month
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Europe
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
+1 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…

3744 posts
  • Won a Competition
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Spain
  • Referred between 200 and 499 users
+5 more
pezflash says

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

by
by
by
by
by
by