Difference between revisions of "Gallery.as"

From Organic Design wiki
m
(try other way)
Line 1: Line 1:
//#include "debug.as"
 
  
 
layer = 99999;
 
layer = 99999;
  
function thumb( x, y, imageUrl ) {
+
 
     this.createEmptyMovieClip( 'thumb', _root.layer-- );
+
function thumb( parentMovieClip, layer, imageUrl, x, y ) {
 +
     var name = 'thumb'+layer;
 +
    parentMovieClip.createEmptyMovieClip( name, layer );
 
     this.thumb.loadMovie( imageUrl );
 
     this.thumb.loadMovie( imageUrl );
     this.thumb._x = x;
+
     this.thumb = parent[name];
    this.thumb._y = y;
 
    return this.thumb;
 
 
     }
 
     }
  
thumb.prototype.sayHello = function() {
+
something = new thumb( _root, layer--, "/w/angela-images/small/purple.jpg", 10, 10 );
//   echo("My URL is " + this.imageUrl);
+
something.thumb._alpha = 20;
    };
 
 
 
thumb.prototype.show = function() {
 
    // move to the main layer?
 
    };
 
 
 
  
bob = new thumb( 10, 10, "/w/angela-images/small/purple.jpg" );
 
bob.show();
 
  
 
// drag end
 
// drag end

Revision as of 06:17, 10 April 2006

layer = 99999;


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

   var name = 'thumb'+layer;
   parentMovieClip.createEmptyMovieClip( name, layer );
   this.thumb.loadMovie( imageUrl );
   this.thumb = parent[name];
   }

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


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

   this.stopDrag();
   }; 

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