-
basic function problem
Have a problem with something quite basic that I can't get working. Appreciate any help or direction with it. I have a function:
Code:
position1 = function(){
this.slideTo(0,0,2,"easeInOutBounce");
this.scaleTo(100,3);
this.alphaTo(100,3.5);
}
that I want to apply to a movieclip "aboutus" using
Code:
aboutbutton.onPress = function(){
postition1.apply(aboutus);
}
but it dosen't seem to work. What amazingly dunce thing am I doing?
I'm using the tween prototypes from http://laco.wz.cz/tween/?page=examples
-
You've spelt position1 wrong in the apply line of your code - fix that and it should work.