Difference between revisions of "Gallery.as"

From Organic Design wiki
m
m
Line 9: Line 9:
 
     this.y = y;
 
     this.y = y;
 
     this.createEmptyMovieClip(handle, layer-- );
 
     this.createEmptyMovieClip(handle, layer-- );
     this.loadMovie( this.imageUrl, 1 );
+
     handle.loadMovie( this.imageUrl );
 
     }
 
     }
  

Revision as of 02:30, 10 April 2006

  1. include "debug.as"

layer = 99999;

function thumb( handle, x, y, imageUrl ) {

   this.imageUrl = imageUrl;
   this.handle = handle;
   this.x = x;
   this.y = y;
   this.createEmptyMovieClip(handle, layer-- );
   handle.loadMovie( this.imageUrl );
   }

thumb.prototype.sayHello = function() {

   echo("My handle is " + this.handle + " abd my URL is " + this.imageUrl);
   };

bob = new thumb( 'sponge', 10, 10, "/w/angela-images/small/purple.jpg" ); bob.sayHello();

// drag end _root.onDragOut = function() {

   this.stopDrag();
   }; 

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