Jump to content
Search Community

tfranz

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by tfranz

  1. Hi Rodrigo, that advice worked for me – thank you for your help! Tobias
  2. The "Simple 3D Hover Flip" seems not to work in IE10 (Windows 7) – is there a code pen example for this working in IE10, too? Thank you, Tobias
  3. Okay, i understand, i will try one of your other solutions – thanks for your answer!
  4. Hi, i want to script an everlasting oscillating movement with changing amplitudes – but i can't get it to work ... import com.greensock.*; import com.greensock.easing.*; import com.greensock.plugins.*; TweenPlugin.activate([DynamicPropsPlugin]); function getAmplitude():String {return String(50);} TweenMax.to(my_mc,1,{dynamicProps:{_y:getAmplitude}, repeat:-1, ease:Sine.easeInOut, yoyo:true}); //TweenMax.to(my_mc,1,{_y:"50", repeat:-1, ease:Sine.easeInOut, yoyo:true}); If i use the last line of code, the tweening is okay. But i want to change the _y:"50" to different values, so i tried it with dynamicProps – but the effect is completely different as i expected ... if i use the code with the dynamicProps i expected the same behaviour ... Second question: is there an "ease:" with a +/- movement? ease:Sine.easeInOut is from (example above) 0 to 50 to 0, but i would like to have 0 to 25 to 0 to -25 to 0 ... Thanks for your help, Tobias
  5. That's it - thank you very much!
  6. Hi, i'm trying to get the dynamicProps to work in AS2 – and yes, i'm a club-member ... But there's no dynamic tweening at all ... import com.greensock.TweenLite; import com.greensock.plugins.TweenPlugin; import com.greensock.plugins.DynamicPropsPlugin; TweenPlugin.activate([DynamicPropsPlugin]); //activation is permanent in the SWF, so this line only needs to be run once. function getMouseX():Number { return this._xmouse;} function getMouseY():Number { return this._ymouse;} TweenLite.to(my_mc, 3, {dynamicProps:{_x:getMouseX, _y:getMouseY}}); //TweenLite.to(my_mc, 3, {_x:10, _y:10}); There is a movieclip "my_mc" on the stage. The plugin-file is inside the folder com/greensock/plugins/DynamicPropsPlugin.as (as it should be, i changed nothing inside the folders) and the FLA is beside the com-folder. The last line of code above works – so i think it's not a general problem with the Tweening. What could be the problem? Thanks for any help/ hint! Tobias
×
×
  • Create New...