Guest User

Untitled

a guest
May 24th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. for(var i = 0;i < nodes.length; i++){
  2. var button = home.attachMovie("item","item"+i,i);
  3. button.icon.loadMovie(nodes[i].attributes.image);
  4. button._x = (BUTTON.width/2) + i * (BUTTON.width + margin) +48;
  5. button._y = (Stage.height / 2) + 60;
  6. button._alpha = 35;
  7. button.onRollOver = function(){
  8. this.tween1 = new Tween(this, "_xscale", Strong.easeOut, 100, 120, 0.5, true);
  9. this.tween2 = new Tween(this, "_yscale", Strong.easeOut, 100, 120, 0.5, true);
  10. this.tween3 = new Tween(this, "_alpha", Strong.easeOut, 35, 100, 0.5, true);
  11.  
  12. };
  13. button.onRollOut = function(){
  14. this.tween1.stop(); this.tween1.yoyo();
  15. this.tween2.stop(); this.tween2.yoyo();
  16. this.tween3.stop(); this.tween3.yoyo();
  17. };
  18. buttons.push(button);
  19. }
Add Comment
Please, Sign In to add comment