Hello ppl,
First of all please excuse my bad English and sorry if I am asking stupid question, which answer is published on this forum or online help/examples. I have tried to find the answer, also tried a lot of variants but unfortunately without any success
So, I am not so good with coding (still working with AS2, AS3 looks like Mission Impossible 4 to me ) ...
My question is can I use TweenMax with listeners in AS2 - for example something like that
myTween=TweenMax.to(ball, 10, {_x:700, onUpdateListener:myFun});
In help I saw that - onUpdateListener is described as Function, and it is similar as: "myTween.addEventListener(TweenEvent.UPDATE, myFunction);" correct me if I am wrong but the last one is for AS3 correct!?
I have tried a lot of variants to change in AS2 but nothing:
var list = {};
list.UPDATE = function(){
trace('hop');
}
var tw = TweenMax.to(ball, 10, {_x:700});
tw.addListener(list);
//_________________________________________
var list = {};
list.onUpdate = function(){
trace('hop');
}
var tw = TweenMax.to(ball, 10, {_x:700});
tw.addListener(list);
//_________________________________________
var list = {};
list.Update = function(){
trace('hop');
}
var tw = TweenMax.to(ball, 10, {_x:700});
tw.addListener(list);
//_________________________________________
var list = {};
list.Update = function(){
trace('hop');
}
var tw = TweenMax.to(ball, 10, {_x:700, onUpdateListener: list});
All these examples above + many others do not work. I know, I can use onUpdate instead of onUpdateListener - but will be better if I can use listener
Thanks in advance and once again sorry if I am an idiot