Pastebin
139752 geplaatste codes! 

Plaats #4527 (PHP)

Gepost op 19-12-2007 23:42 (bewerkte versie van dump #4520)
Downloaden als .txt-bestand - Bewerk en post opnieuw
  1. //Niet werkend
  2.  
  3. import mx.transitions.Tween;
  4. import mx.transitions.easing.*;
  5. import mx.utils.Delegate;
  6.  
  7. var startposx:Number = boekenkast_mc._x;
  8. var startposy:Number = boekenkast_mc._y;
  9. var startscale:Number = boekenkast_mc._xscale;
  10. var startscale:Number = boekenkast_mc._yscale;
  11.  
  12. // RollOver plaatje naar nwe plek
  13.  
  14. boekenkast_mc.onRollOver= function() {
  15.        
  16.        
  17.         new Tween(this, "_x", Regular.easeIn, this._x, 100, 20);
  18.         new Tween(this, "_y", Regular.easeIn, this._y, 150, 20);
  19.         new Tween(this, "_xscale", Regular.easeIn, this._xscale, 325, 20);
  20.         new Tween(this, "_yscale", Regular.easeIn, this._yscale, 50, 20);
  21.         this.enabled=false;
  22.                
  23.         boekenkast_mc.onMotionFinished = Delegate.create(boekenkast_mc  ,doRollOut);
  24. }
  25.  
  26. function doRollOut()
  27. {
  28.      boekenkast_mc.enabled=true;
  29.                 
  30. };
  31.  
  32. //-------------- RollOut plaatje terug naar oude plek
  33.  
  34. boekenkast_mc.onRollOut = boekenkast_mc.onReleaseOutside=function () {
  35.        
  36.                
  37.         new Tween(this, "_x", Regular.easeOut, this._x, startpos_inv_x, 20);
  38.         new Tween(this, "_y", Regular.easeOut, this._y, startpos_inv_y, 20);
  39.         new Tween(this, "_xscale", Regular.easeOut, this._xscale, startscale_inv, 20);
  40.         new Tween(this, "_yscale", Regular.easeOut, this._yscale, startscale_inv, 20);
  41.        
  42.         };
  43.  
  44. ///Werkend
  45.  
  46. import mx.transitions.Tween;
  47. import mx.transitions.easing.*;
  48. import mx.utils.Delegate;
  49.  
  50. var startposx:Number = boekenkast_mc._x;
  51. var startposy:Number = boekenkast_mc._y;
  52. var startscale:Number = boekenkast_mc._xscale;
  53. var startscale:Number = boekenkast_mc._yscale;
  54.  
  55.  
  56. boekenkast_mc.onPressClick = function() {
  57.         boekenkast_mc.enabled = false;
  58.         var xTween:Tween = new Tween(boekenkast_mc, "_x", Regular.easeIn, boekenkast_mc._x, 300, 20);
  59.         new Tween(boekenkast_mc, "_y", Regular.easeIn, boekenkast_mc._y, 300, 20);
  60.         new Tween(boekenkast_mc, "_xscale", Regular.easeIn, boekenkast_mc._xscale, 150, 20);
  61.         new Tween(boekenkast_mc, "_yscale", Regular.easeIn, boekenkast_mc._yscale, 150, 20);
  62.         xTween.onMotionFinished = function (){
  63.      boekenkast_mc.enabled = true;
  64.  
  65.         }
  66. };
  67.  
  68. boekenkast_mc.onRollOverClick = function() {
  69.  
  70.        
  71.  
  72.         new Tween(boekenkast_mc, "_x", Regular.easeOut, boekenkast_mc._x, startposx, 20);
  73.         new Tween(boekenkast_mc, "_y", Regular.easeOut, boekenkast_mc._y, startposy, 20);
  74.         new Tween(boekenkast_mc, "_xscale", Regular.easeOut, boekenkast_mc._xscale, startscale, 20);
  75.         new Tween(boekenkast_mc, "_yscale", Regular.easeOut, boekenkast_mc._yscale, startscale, 20);
  76.  
  77.  
  78. };
  79.  
  80. boekenkast_mc.onPress = Delegate.create(boekenkast_mc, boekenkast_mc.onPressClick);
  81.  
  82. boekenkast_mc.onRollOut = Delegate.create(boekenkast_mc, boekenkast_mc.onRollOverClick);
© 2010 Sitemasters.be - Gehost door Thijma Internet Services