daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest May 22nd, 2018 49 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. package interactive.navigation{
  2.  
  3.     import flash.display.*;
  4.     import flash.events.*;
  5.     import caurina.transitions.*;
  6.     import interactive.navigation.ScrollBarEvent;
  7.  
  8.  
  9.     public class ScrollBox extends MovieClip {
  10.         private var yOffset:Number;
  11.         private var yMin:Number;
  12.         private var yMax:Number;
  13.         public function ScrollBox():void {
  14.                 sb.addEventListener(ScrollBarEvent.VALUE_CHANGED, sbChange);
  15.         }
  16.         private function sbChange(e:VALUE_CHANGED):void {
  17.             Tweener.addTween(content,{y:- e.scrollPercent * content.height - masker_mc.height,time:1});
  18.  
  19.         }
  20.  
  21.     }
  22. }
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