Difference between revisions of "Gallery.as"

From Organic Design wiki
m
m
Line 2: Line 2:
 
layer = 99999;
 
layer = 99999;
  
// gallery object
+
 
gallery = [
 
    { small: '/w/angela-images/small/purple.jpg', big: '/w/angela-images/small/purple.jpg' },
 
    { small: '/w/angela-images/small/purple.jpg', big: '/w/angela-images/small/purple.jpg' },
 
    ];
 
  
 
for ( pic in gallery) {
 
for ( pic in gallery) {

Revision as of 08:18, 10 April 2006

  1. include 'debug.as';

layer = 99999;


for ( pic in gallery) {

   echo( pic.small );
   }

function thumb( parentMovieClip, layer, imageUrl, x, y ) {

   var name = 'thumb'+layer;
   parentMovieClip.createEmptyMovieClip( name, layer );
   this.thumb = parentMovieClip[name];
   this.thumb.loadMovie( imageUrl );
   this.thumb._x = x;
   this.thumb._y = y;
   this.onRollOver  = function() {
       this.thumb._alpha = 60;
       }; 
   this.onRollOut  = function() {
       this.thumb._alpha = 100;
       }; 
   }

something = new thumb( _root, layer--, "/w/angela-images/small/purple.jpg", 10, 10 );


// per-frame function function reduce() { }