Hej Barklund
Her er hele koden:
//---------------START PÅ PERSONALSEKTION---------------
//opret personal
function XMLOut_personal(){
//hent xml
personal = new XML();
personal.ignoreWhite = true;
personal.load('personal.xml');
personal.onLoad = function () {
xml_file_personal = this;
//opret overordnet movieclip
mc_personal = _root.createEmptyMovieClip("mc_personal",1)
mc_personal._visible = true;
mc_personal._x = 127;
mc_personal._y = 6;
//sæt maske
_root.mc_personal.setMask(mc_maske);
//opret skyder
skyder("skyder1",_root.skyder1._y,140,"mc_personal");
//generer oversigt
i = 1;
minx = "0";
miny = "0";
for ( a = 0; a < xml_file_personal.firstChild.childNodes.length; a++) {
for(z = 0; z < xml_file_personal.firstChild.firstChild.childNodes.length; z++){
if (xml_file_personal.firstChild.childNodes[a].childNodes[z].nodeName == "overskrift") {
//opret variabler
var personal_overskrift = xml_file_personal.firstChild.childNodes[a].childNodes[z].firstChild.nodeValue;
var personal_tekst = xml_file_personal.firstChild.childNodes[a].childNodes[z+1].firstChild.nodeValue;
var personal_image_large = xml_file_personal.firstChild.childNodes[a].childNodes[z+2].firstChild.nodeValue;
var personal_image_small = xml_file_personal.firstChild.childNodes[a].childNodes[z+3].firstChild.nodeValue;
var mincounter = i % 6;
//opret movieclips med billeder
if (mincounter == 0 ) {
miny = Number(miny)+Number(74);
minx = 0;
}
mc_personal_sub = "mc_personal_sub"+i;
_root.mc_personal.createEmptyMovieClip(mc_personal_sub,i)
_root.mc_personal[mc_personal_sub].loadMovie(personal_image_small);
_root.mc_personal[mc_personal_sub]._x = minx;
_root.mc_personal[mc_personal_sub]._y = miny;
setProperty(_root.mc_personal[mc_personal_sub], _alpha, 50);
//sæt mouse-actions
_root.mc_personal[mc_personal_sub].onRollOver = designbit_Rollover;
_root.mc_personal[mc_personal_sub].onRelease = function() {
designbit_url("
http://www.hotmail.com");
};
}
}
minx = Number(minx)+Number(87);
i++;
}
}
}
//MOUSE-ACTIONS TIL PERSONAL-SEKTIONEN
function designbit_rollOver() {
trace ("du har opnået klikhed");
setProperty(this, _alpha, 50);
}