Frame 1
function onEmoticonChange(f, a) {
this[f](a);
}
function clearInt() {
clearInterval(interval);
}
function gotoKeyFrame() {
e.gotoAndStop(keyframe);
}
function go(f) {
e.gotoAndStop(f);
if (maxReached && (f == keyframe)) {
clearInt();
} else {
control();
}
}
function control() {
clearInterval(interval);
if (counter >= max) {
if (em.maxIterations > -1) {
iterations++;
if (iterations < em.maxIterations) {
counter = 0;
} else if (em.endOnKeyframe) {
counter = 0;
maxReached = true;
}
} else {
counter = 0;
}
}
stages(counter);
counter++;
}
function stages(c) {
switch (c) {
case 0 :
interval = setInterval(go, 100, 1);
break;
case 1 :
interval = setInterval(go, 7500, 2);
break;
case 2 :
interval = setInterval(go, 100, 1);
break;
case 3 :
interval = setInterval(go, 500, 2);
}
}
var id = 1;
var max = 4;
var keyframe = 1;
var testing = false;
var interval = null;
var counter = 0;
var em = this._parent.IMVRef.emoticonManager;
var iterations = 0;
var maxReached = false;
this.onUnload = clearInt;
if (em.autoPlay || (testing)) {
control();
} else if (em.autoStartOnKeyframe) {
e.gotoAndStop(keyframe);
}
Symbol 5 MovieClip Frame 1
stop();
Symbol 5 MovieClip Frame 2
stop();