Advertisement
terorama

gallery9 / Gallery9.as

Aug 28th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package  {
  2.    
  3.     import flash.display.MovieClip;
  4.     import flash.display.Stage;
  5.     import flash.events.Event;
  6.    
  7.    
  8.    
  9.     public class Gallery9 extends MovieClip {
  10.        
  11.         private var _imageCarousel: ImageCarousel;
  12.         public static var STAGE:Stage;
  13.        
  14.         //------------------------------
  15.         public function Gallery9() {
  16.            
  17.             this.addEventListener(Event.ADDED_TO_STAGE, onAdd);
  18.    
  19.            
  20.             STAGE=this.stage;
  21.                
  22.             _imageCarousel=new ImageCarousel();
  23.             addChild(_imageCarousel);  
  24.            
  25.         }
  26.         //------------------------------
  27.        
  28.         private function onAdd(e: Event):void {
  29.            
  30.             x=0;
  31.             y=0;
  32.             width=STAGE.width;
  33.             height=STAGE.height;
  34.            
  35.             //STAGE=this.stage;
  36.            
  37.             //_imageCarousel=new ImageCarousel();
  38.             //addChild(_imageCarousel);
  39.             //_imageCarousel.start();
  40.         }
  41.     }
  42.    
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement