Difference between revisions of "Gallery.as"
From Organic Design wiki
(try other way) |
m |
||
Line 1: | Line 1: | ||
− | |||
layer = 99999; | layer = 99999; | ||
Line 6: | Line 5: | ||
var name = 'thumb'+layer; | var name = 'thumb'+layer; | ||
parentMovieClip.createEmptyMovieClip( name, layer ); | parentMovieClip.createEmptyMovieClip( name, layer ); | ||
+ | this.thumb = parent[name]; | ||
this.thumb.loadMovie( imageUrl ); | this.thumb.loadMovie( imageUrl ); | ||
− | |||
} | } | ||
Revision as of 06:18, 10 April 2006
layer = 99999;
function thumb( parentMovieClip, layer, imageUrl, x, y ) {
var name = 'thumb'+layer; parentMovieClip.createEmptyMovieClip( name, layer ); this.thumb = parent[name]; this.thumb.loadMovie( imageUrl ); }
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() { }