Difference between revisions of "Gallery.as"
From Organic Design wiki
m |
m |
||
Line 14: | Line 14: | ||
bob = new thumb( 'sponge', 10, 10, "/w/angela-images/small/purple.jpg" ); | bob = new thumb( 'sponge', 10, 10, "/w/angela-images/small/purple.jpg" ); | ||
− | bob.sayHello(); | + | bob.sayHello(); |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
// drag end | // drag end |
Revision as of 02:18, 10 April 2006
layer = 99999;
function thumb( handle, x, y, imageUrl ) {
this.imageUrl = imageUrl; this.handle = handle; this.x = x; this.y = y; this.createEmptyMovieClip(handle, _root.layer-- ); }
thumb.prototype.sayHello = function() {
echo "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() { }