stop();
var anfrage = this;
//----------------------------------------------------header
MC_anfrage.T_welcome.autoSize = "left";
MC_anfrage.T_welcome.selectable = false;
MC_anfrage.T_welcome.text = "Anforderung für ein unverbindliches Kostenangebot Ihres Projektes";
//---------------------------------------------------------scroller
MC_scrollUp.onPress = function() {
anfrage.MC_anfrage.onEnterFrame = function() {
this._y += 3;
if (this._y>=12) {
this._y = 12;
delete this.onEnterFrame;
}
};
};
MC_scrollUp.onRelease = function() {
anfrage.MC_anfrage._y = anfrage.MC_anfrage._y;
delete anfrage.MC_anfrage.onEnterFrame;
};
MC_scrollDown.onPress = function() {
anfrage.MC_anfrage.onEnterFrame = function() {
this._y -= 6;
if (this._y<=-750) {
this._y = -750;
delete this.onEnterFrame;
}
};
};
MC_scrollDown.onRelease = function() {
anfrage.MC_anfrage._y = anfrage.MC_anfrage._y;
delete anfrage.MC_anfrage.onEnterFrame;
};
//------------------------------------------------------mausscroller
mouseListener = new Object();
mouseListener.onMouseWheel = function(delta) {
MC_anfrage._y += delta*5;
};
Mouse.addListener(mouseListener);
//----------------------------------PROTOTYPE PLANCHECKBOX
_global.alt;
MovieClip.prototype.checkPlan = function(ankreuzen, symbol) {
if (ankreuzen == true) {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
} else {
this.angekreuzt = false;
}
this.onPress = function() {
if (this.angekreuzt == true) {
this[symbol].removeMovieClip();
this.angekreuzt = false;
} else {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
_global.alt[symbol].removeMovieClip();
_global.alt = this;
_global.alt.angekreuzt = false;
}
};
};
MC_anfrage.MC_checkPlan1.checkPlan(false, "checkpoint");
MC_anfrage.MC_checkPlan2.checkPlan(false, "checkpoint");
MC_anfrage.MC_checkPlan3.checkPlan(false, "checkpoint");
//----------------------------------PROTOTYPE BILDCHECKBOX
_global.bildalt;
MovieClip.prototype.checkBild = function(ankreuzen, symbol) {
if (ankreuzen == true) {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
} else {
this.angekreuzt = false;
}
this.onPress = function() {
if (this.angekreuzt == true) {
this[symbol].removeMovieClip();
this.angekreuzt = false;
} else {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
_global.bildalt[symbol].removeMovieClip();
_global.bildalt = this;
_global.bildalt.angekreuzt = false;
}
};
};
MC_anfrage.MC_checkBild1.checkBild(false, "checkpoint");
MC_anfrage.MC_checkBild2.checkBild(false, "checkpoint");
MC_anfrage.MC_checkBild3.checkBild(false, "checkpoint");
MC_anfrage.MC_checkBild4.checkBild(false, "checkpoint");
//----------------------------------PROTOTYPE AKTIVCHECKBOX
_global.aktivalt;
MovieClip.prototype.checkAktiv = function(ankreuzen, symbol) {
if (ankreuzen == true) {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
} else {
this.angekreuzt = false;
}
this.onPress = function() {
if (this.angekreuzt == true) {
this[symbol].removeMovieClip();
this.angekreuzt = false;
} else {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
_global.aktivalt[symbol].removeMovieClip();
_global.aktivalt = this;
_global.aktivalt.angekreuzt = false;
}
};
};
MC_anfrage.MC_checkAktiv1.checkAktiv(false, "checkpoint");
MC_anfrage.MC_checkAktiv2.checkAktiv(false, "checkpoint");
//----------------------------------PROTOTYPE DESIGNCHECKBOX
_global.designalt;
MovieClip.prototype.checkDesign = function(ankreuzen, symbol) {
if (ankreuzen == true) {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
} else {
this.angekreuzt = false;
}
this.onPress = function() {
if (this.angekreuzt == true) {
this[symbol].removeMovieClip();
this.angekreuzt = false;
} else {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
_global.designalt[symbol].removeMovieClip();
_global.designalt = this;
_global.designalt.angekreuzt = false;
}
};
};
MC_anfrage.MC_checkDesign1.checkDesign(false, "checkpoint");
MC_anfrage.MC_checkDesign2.checkDesign(false, "checkpoint");
//----------------------------------PROTOTYPE SUCHMASCHINENCHECKBOX
_global.suchalt;
MovieClip.prototype.checkSuch = function(ankreuzen, symbol) {
if (ankreuzen == true) {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
} else {
this.angekreuzt = false;
}
this.onPress = function() {
if (this.angekreuzt == true) {
this[symbol].removeMovieClip();
this.angekreuzt = false;
} else {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
_global.suchalt[symbol].removeMovieClip();
_global.suchalt = this;
_global.suchalt.angekreuzt = false;
}
};
};
MC_anfrage.MC_checkSuch1.checkSuch(false, "checkpoint");
MC_anfrage.MC_checkSuch2.checkSuch(false, "checkpoint");
//----------------------------------PROTOTYPE ZEITCHECKBOX
_global.zeitalt;
MovieClip.prototype.checkZeit = function(ankreuzen, symbol) {
if (ankreuzen == true) {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
} else {
this.angekreuzt = false;
}
this.onPress = function() {
if (this.angekreuzt == true) {
this[symbol].removeMovieClip();
this.angekreuzt = false;
} else {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
_global.zeitalt[symbol].removeMovieClip();
_global.zeitalt = this;
_global.zeitalt.angekreuzt = false;
}
};
};
MC_anfrage.MC_checkZeit1.checkZeit(false, "checkpoint");
MC_anfrage.MC_checkZeit2.checkZeit(false, "checkpoint");
MC_anfrage.MC_checkZeit3.checkZeit(false, "checkpoint");
//----------------------------------PROTOTYPE INHALTCHECKBOX
_global.inhaltalt;
MovieClip.prototype.checkInhalt = function(ankreuzen, symbol) {
if (ankreuzen == true) {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
} else {
this.angekreuzt = false;
}
this.onPress = function() {
if (this.angekreuzt == true) {
this[symbol].removeMovieClip();
this.angekreuzt = false;
} else {
this.attachMovie(symbol, symbol, 1);
this.angekreuzt = true;
_global.inhaltalt[symbol].removeMovieClip();
_global.inhaltalt = this;
_global.inhaltalt.angekreuzt = false;
}
};
};
MC_anfrage.MC_checkInhalt1.checkZeit(false, "checkpoint");
MC_anfrage.MC_checkInhalt2.checkZeit(false, "checkpoint");
MC_anfrage.MC_checkInhalt3.checkZeit(false, "checkpoint");
//--------------------------------------------------maskierung
MC_anfrage.setMask(MC_maske);