daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private function calculatePosition() : Void {
  2.        
  3.         //var dx : Number = ( -( _xmouse ) - ( container._x ) / 1.9);
  4.         //var vx : Number = (dx * .2);
  5.         //container._x += vx;
  6.        
  7.         var panelLen : Number = Data.CONTENT[0].PANELSET[ 0 ].PANEL.length;
  8.         for( var i : Number = 0; i < panelLen; i++ ) {
  9.            
  10.             var adx:Number = ( _xmouse - ( Stage.width / 2 ) );
  11.             var avx:Number = ( adx + ( Stage.width / 2 ) ) / ( Stage.width );
  12.             //panelArr[i]._xscale = panelArr[i]._yscale = 100 - Math.floor( avx*25 );
  13.            
  14.             var dx : Number = ( -( _xmouse ) - ( panelArr[i]._x ) / 1.9);
  15.             var vx : Number = (dx * .2);
  16.             panelArr[i]._x += vx;
  17.            
  18.         }
  19.            
  20.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top