Frame 1
function initApplet() {
setProperty("moviearea", _x , 0);
setProperty("moviearea", _y , 0);
var i = 0;
while (i < maxitems) {
setProperty("moviearea.image" + i, _alpha , 0);
setProperty("moviearea.image" + i, _width , width);
setProperty("moviearea.image" + i, _height , height);
setProperty("moviearea.image" + i, _visible , false);
i++;
}
setProperty("moviearea.image0", _visible , true);
setProperty("moviearea.image1", _visible , true);
urls = urls.split("|");
currentsleeptime = sleeptime;
activated = true;
}
function run() {
if (activated && (!finished)) {
if (currentsleeptime == 0) {
currentfade = currentfade - fadespeed;
nextfade = nextfade + fadespeed;
}
if (0 >= currentfade) {
setProperty("moviearea.image" + currentimage, _alpha , 0);
setProperty("moviearea.image" + currentimage, _visible , false);
setProperty("moviearea.image" + nextimage, _alpha , 100);
currentimage++;
nextimage++;
if ((maxitems - 1) < currentimage) {
currentimage = 0;
if (runonce == 1) {
finished = true;
if (0 < nextmovie.length) {
loadMovie (nextmovie, _level0);
}
}
}
if ((maxitems - 1) < nextimage) {
nextimage = 0;
}
currentfade = 100;
nextfade = 0;
currentsleeptime = sleeptime;
}
if (0 < currentsleeptime) {
currentsleeptime--;
}
setProperty("moviearea.image" + currentimage, _alpha , currentfade);
setProperty("moviearea.image" + currentimage, _visible , true);
setProperty("moviearea.image" + nextimage, _alpha , nextfade);
setProperty("moviearea.image" + nextimage, _visible , true);
trace((moviearea.image1._visible + " ") + moviearea.image1._alpha);
if (mousedown) {
if (1 < urls[currentimage].length) {
getURL (urls[currentimage], target);
}
}
if (mousedown) {
mousedown = false;
}
}
}
var maxitems = 4;
var currentimage = 0;
var nextimage = 1;
var currentfade = 100;
var nextfade = 0;
var mousedown = false;
var currentsleeptime = 0;
var activated = false;
var finished = false;
var runonce = parseInt("0", 10);
var nextmovie = "";
var maxitems = parseInt("3", 10);
var ap = "<APPLETINFO>\r\nappletname=imagefader\r\napplettype=FLASH\r\ncreated=1097721352796\r\nappletfilename=kamo\r\nappletfilename=kamo\r\n</APPLETINFO>\r\n<ACTIONSCRIPT>\r\nwidth=360\r\nheight=270\r\nfadespeed=5\r\nsleeptime=40\r\ntarget=_self\r\nnextmovie=\r\nmaxitems=3\r\nurl= | | |\r\nlm= |\r\nlmxy= |\r\nquality=AutoHigh\r\nmode=\r\nbackgroundcolor=0\r\nrunonce=0\r\n</ACTIONSCRIPT>\r\n<HTML>\r\nwidth=360\r\nheight=270\r\nquality=AutoHigh\r\nmode=\r\nbackgroundcolor=000000\r\n</HTML>\r\n<GENERATED>\r\nwidth=360\r\nwidth_GS=0;-\r\nheight=270\r\nheight_GS=0;-\r\ncompressionratio=50\r\ncompressionratio_GS=12;-\r\nimage_GS=1;compressionratio\r\nimage0=kamo 000.jpg\r\nimage1=kamo 001.jpg\r\nimage2=kamo 002.jpg\r\nquality=AutoHigh\r\nquality_GS=0;-\r\nmode=\r\nmode_GS=0;-\r\nbackgroundcolor=000000\r\n</GENERATED>";
var ts = parseInt("-1", 10);
var fadespeed = parseInt("5", 10);
var urls = " | | |";
var target = "_self";
var sleeptime = parseInt("40", 10);
var width = parseInt("360", 10);
var height = parseInt("270", 10);
var lm = " |";
var lmxy = " |";
attachMovie("click", "click", 0);
setProperty("click", _x , 0);
setProperty("click", _y , 0);
setProperty("click", _width , width);
setProperty("click", _height , height);
var lm = lm.split("|");
var lmxy = lmxy.split("|");
i = 0;
while (i < lm.length) {
if (3 < lm[i].length) {
attachMovie("lom", "lm" add i, i + 1);
var xy = lmxy[i].split(",");
setProperty("lm" add i, _x , xy[0]);
setProperty("lm" add i, _y , xy[1]);
eval ("lm" add i).loadMovie(lm[i]);
}
i++;
}
Instance of Symbol 16 MovieClip "moviearea" in Frame 1
onClipEvent (load) {
_parent.initApplet();
trace("in load");
}
onClipEvent (enterFrame) {
_parent.run();
}
onClipEvent (mouseDown) {
if (_parent.click.hitTest(_root._xmouse, _root._ymouse, false)) {
_parent.mousedown = true;
_parent.dragging = true;
_parent.lasty = _root._ymouse;
}
}
onClipEvent (mouseUp) {
_parent.dragging = false;
_parent.lasty = -1;
}
Instance of Symbol 23 MovieClip "linkwarebutton" in Frame 1
onClipEvent (load) {
this._alpha = 100;
this._x = 0;
this._y = 0;
this.dimensionsset = false;
if (this._name eq "linkwarebutton") {
duplicateMovieClip (this, "linkwarebutton2", 32535);
this._visible = false;
}
var c = new Color(this.linkwaretext);
c.setRGB(_root.backgroundcolor ^ 16777215);
if ((_root.backgroundcolor == 8355711) || (_root.backgroundcolor == 8421504)) {
c.setRGB(0);
}
c = new Color(this.linkwarebackground);
c.setRGB(_root.backgroundcolor);
counter = 60;
}
onClipEvent (enterFrame) {
if (_root.width == null) {
_root.width = _root.movx;
_root.height = _root.movy;
}
this.linkwarebackground._width = _root.width;
this.linkwarebackground._height = _root.height;
if (_root.width < this.linkwaretext._width) {
this.linkwaretext._width = _root.width - 30;
}
if (_root.height < 33) {
this.linkwaretext._height = _root.height;
}
if (0 < this.counter) {
counter--;
if (this.counter == 0) {
fadeout = true;
}
}
if (this.fadeout && (!this.fadein)) {
if (0 < this._alpha) {
this._alpha = this._alpha - 5;
}
if (0 >= this._alpha) {
this.fadeout = false;
this._visible = false;
delete null;
delete this;
}
}
}
Symbol 19 Button
on (rollOver) {
this.invoked = false;
this.isover = true;
}
on (dragOver) {
this.isover = true;
}
on (press) {
if (!this.invoked) {
getURL ("http://www.effectmaker.com/appletclicked.html", "_blank");
this.invoked = true;
}
}
on (rollOut) {
this.isover = false;
this.invoked = false;
}
on (dragOut) {
this.isover = false;
}