Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
newInterval();
import mx.transitions.Tween;
MovieClip.prototype.killMC = function () {
this.swapDepths(100000);
this.removeMovieClip();
}
//var a = ["b1","b2","b3","b4","b5"];
var zeichen = ["b1","b2","b3","b4","b5"];
var interval;
var end;
var begin;
var i;
var h = 0;
var intDuration = 10;
var tweenDuration = 3;
var scratch = new Sound(this);
scratch.attachSound("scr2");
anfang();
fadeinterval = setInterval(einfaden, 3500);
losinterval = setInterval(los, 7000);
function anfang() {
b0._alpha = 0;
b1._alpha = 0;
b2._alpha = 0;
b3._alpha = 0;
b4._alpha = 0;
b5._alpha = 0;
strich._alpha = 0;
}
function los () {
clearInterval(losinterval);
strich.killMC();
i = -1;
newInterval();
barthl();
scratchinterval = setInterval(scrsnd, 800);
}
function newInterval(){
i++;
interval = setInterval(wait, intDuration + random(500));
}
function wait(){
clearInterval(interval);
slideright(i);
if(i <= zeichen.length) {
newInterval();
} else {
clearInterval(interval);
}
}
function slideright(i){
begin = this[zeichen[i]]._x;
end = this[zeichen[i]]._x + 50;
var myTween:Tween = new Tween(this[zeichen[i]], "_x", mx.transitions.easing.Elastic.easeInOut, begin, end, tweenDuration, true);
}
function barthl() {
loadMovie("artholom2.swf","holofn");
}
function einfaden() {
clearInterval(fadeinterval);
onEnterFrame = function() {
b0._alpha = b0._alpha + h;
b1._alpha = b1._alpha + h;
b2._alpha = b2._alpha + h;
b3._alpha = b3._alpha + h;
b4._alpha = b4._alpha + h;
b5._alpha = b5._alpha + h;
strich._alpha = strich._alpha + h;
h = h + 0.1;
}
}
function scrsnd() {
clearInterval(scratchinterval);
scratch.start();
}
function einfaden() {
clearInterval(fadeinterval);
onEnterFrame = function () {
b0._alpha = b0._alpha+h;
b1._alpha = b1._alpha+h;
b2._alpha = b2._alpha+h;
b3._alpha = b3._alpha+h;
b4._alpha = b4._alpha+h;
b5._alpha = b5._alpha+h;
strich._alpha = strich._alpha+h;
h = h+0.1;
if (b0._alpha+h>=100) {
delete this.onEnterFrame;
}
};
}