Difference between revisions of "Gallery.as"

From Organic Design wiki
m
m
Line 3: Line 3:
 
layer = 99999;
 
layer = 99999;
  
function thumb( handle, x, y, imageUrl ) {
+
function thumb( x, y, imageUrl ) {
 
     this.imageUrl = imageUrl;
 
     this.imageUrl = imageUrl;
 
     this.handle = handle;
 
     this.handle = handle;
     this.createEmptyMovieClip(handle, layer-- );
+
     this.createEmptyMovieClip( image, layer-- );
     handle._x = x;
+
     image._x = x;
     handle._y = y;
+
     image._y = y;
     handle.loadMovie( this.imageUrl );
+
     image.loadMovie( this.imageUrl );
 
     }
 
     }
  
 
thumb.prototype.sayHello = function() {
 
thumb.prototype.sayHello = function() {
     echo("My handle is " + this.handle + " abd my URL is " + this.imageUrl);
+
     echo("My URL is " + this.imageUrl);
 
     };
 
     };
  
bob = new thumb( 'sponge', 10, 10, "/w/angela-images/small/purple.jpg" );
+
bob = new thumb( 10, 10, "/w/angela-images/small/purple.jpg" );
 
bob.sayHello();   
 
bob.sayHello();   
  

Revision as of 02:34, 10 April 2006

  1. include "debug.as"

layer = 99999;

function thumb( x, y, imageUrl ) {

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

thumb.prototype.sayHello = function() {

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

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

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

   this.stopDrag();
   }; 

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