Apologies I'm fairly new to GreenSock/Actionscript.
I am a GreenSock member some confusion over code previously supplied by the publisher.
Thanks for the notification I have now fixed this (see code at bottom of reply)
When co-ordinates are reached I require only one clip to appear when destination is complete/reached.
The others must fade/animate out.
If you take a look at my file I think you will have a better understanding of what I'm trying to achieve...
http://www.madina.co.uk/tmp/018_019.swf
I think this what is required is the 'onComplete' function you mentioned and possibly the 'onStart' function
Do you have an example or know here I might be able to find relevant usage of this code?
P.S. I am unsure how to activate the MotionBlur plugin.
code - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
stop();
import com.greensock.*;
import com.greensock.plugins.*;
TweenPlugin.activate([MotionBlurPlugin]);
mainStage.stage2.onRelease = function() {
TweenMax.to(mainStage, 2, { motionBlur:true, delay:0.2, _x:-230, _y:-230, ease:Back.easeOut});
}
mainStage.btn1.onRelease = function() {
TweenMax.to(mainStage, 2, { motionBlur:true, delay:0.2, _x:-230, _y:-230, ease:Back.easeOut});
}
mainStage.btn2.onRelease = function() {
TweenMax.to(mainStage, 2, {motionBlur:true, delay:0.2, _x:-1230, _y:-230, ease:Back.easeOut});
}
mainStage.btn3.onRelease = function() {
TweenMax.to(mainStage, 2, {motionBlur:true, delay:0.2, _x:-230, _y:-1340, ease:Back.easeOut});
}
mainStage.btn4.onRelease = function() {
TweenMax.to(mainStage, 2, {motionBlur:true, delay:0.4, _x:-1230, _y:-1340, ease:Back.easeOut});
}
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - code