tweenlite
- Started
- Last post
- 7 Responses
- colour
anyone use this ?
been working with it on a project and doesnt seem to be as responsive all the time
ie: i'm trying to remove a tint onPress and its not listening to my code
anyone help on this ?
- mathinc0
are you removing it like this:
http://pastebin.com/m658907adIf you can, post your code in pastebin and we can take a looksie.
- colour0
btn1.onPress = function() {
TweenLite.to(mc1, 0.5, {_x:500, _y:-500, ease:Expo.easeOut});
TweenLite.to(mc2, 0.7, {_x:30, _y:0, removeTint:true, ease:Expo.easeOut});
};
- colour0
tried using an onPress and onRelease to do 2 different things but still no work
- mathinc0
hmm are you sure this is firing? try this, just to strip it down a bit to figure out why it's not working.. I've had some odd experiences with tweenlite too. How are you importing TweenLite?
1. Throw a trace in that function to make sure the button handler there is firing.
2. Take out the easing equation stuff for a sec.
- colour0
import gs.TweenLite;
import gs.easing.*;
- mathinc0
okay and is this line working? Or is it failing as well?
TweenLite.to(mc1, 0.5, {_x:500, _y:-500, ease:Expo.easeOut});
- colour0
yes still working but again the tint doesnt remove