Pastebin
139921 geplaatste codes! 

Plaats #4520 (PHP)

Gepost op 19-12-2007 17:43 (bewerkte versie van dump #4519)
Downloaden als .txt-bestand - Bewerk en post opnieuw
  1. import mx.transitions.Tween;
  2. import mx.transitions.easing.*;
  3. import mx.utils.Delegate;
  4.  
  5. var startposx:Number = boekenkast_mc._x;
  6. var startposy:Number = boekenkast_mc._y;
  7. var startscale:Number = boekenkast_mc._xscale;
  8. var startscale:Number = boekenkast_mc._yscale;
  9.  
  10. // RollOver plaatje naar nwe plek
  11.  
  12. boekenkast_mc.onRollOver= function() {
  13.        
  14.        
  15.         new Tween(this, "_x", Regular.easeIn, this._x, 100, 20);
  16.         new Tween(this, "_y", Regular.easeIn, this._y, 150, 20);
  17.         new Tween(this, "_xscale", Regular.easeIn, this._xscale, 325, 20);
  18.         new Tween(this, "_yscale", Regular.easeIn, this._yscale, 50, 20);
  19.         this.enabled=false;
  20.                
  21.         boekenkast_mc.onMotionFinished = Delegate.create(boekenkast_mc  ,doRollOut);
  22. }
  23.  
  24. function doRollOut()
  25. {
  26.      boekenkast_mc.enabled=true;
  27.                 
  28. };
  29.  
  30. //-------------- RollOut plaatje terug naar oude plek
  31.  
  32. boekenkast_mc.onRollOut = boekenkast_mc.onReleaseOutside=function () {
  33.        
  34.                
  35.         new Tween(this, "_x", Regular.easeOut, this._x, startpos_inv_x, 20);
  36.         new Tween(this, "_y", Regular.easeOut, this._y, startpos_inv_y, 20);
  37.         new Tween(this, "_xscale", Regular.easeOut, this._xscale, startscale_inv, 20);
  38.         new Tween(this, "_yscale", Regular.easeOut, this._yscale, startscale_inv, 20);
  39.        
  40.         };
© 2010 Sitemasters.be - Gehost door Thijma Internet Services