PDA

View Full Version : testing movie with the [as]


Pluis
09-11-2002, 08:09 AM
if (_root.itemstats.filename=="..."){
gotoandplay(2);
}else{
//_root.alert(_root.itemstats.filename);
for (i=1;i<9;i++){
unloadMovie(_root.panel["vak"+i]);
if (_root.itemstats["i"+i] != "..."){
_root["v"+i] = _root.itemstats["i"+i];
//loadMovie(_root.itemstats["i"+i+"swf"], "_root.panel"+["vak"+i]);
//_root.alert(_root.itemstats["i"+i].substring(0,_root.itemstats["i"+i].length -1));
checked = true;
for (a=1;a<9;a++){
if (_root.itemstats["i"+i].substring(0,_root.itemstats["i"+i].length -1) == _root.itemstats["i"+a].substring(0,_root.itemstats["i"+a].length-1) && i!=a && i>a){
checked = false;
}


}
if (checked == true){
_root.panel["vak"+i].itemcount=1;
loadMovie(_root.itemstats["i"+i+"swf"], _root.panel["vak"+i]);
for (b=1;b<8;b++){
//if ( _root.itemstats["i"+i].substring(0,_root.itemstats["i"+i].length -1) == _root.itemstats["i"+b].substring(0,_root.itemstats["i"+b].length-1) && i!=b && i>b){
// _root.panel["vak"+i].itemcount++;
//}
}
}
//plaats items
_root.activeitem = _root.itemstats["i"+i];
//_root.panel["vak"+i].itemcount++;
_root.alert("_root.panel.vak"+i+"."+_root.activeitem.substring(0,_root.activeitem.len gth-1)+b);
//_root.alert("_root.panel.vak"+i+"."+_root.activeitem.substring(0,_root.activeitem.len gth-1));
duplicateMovieClip("_root.panel.vak"+i+"."+_root.activeitem.substring(0,_root.activeitem.len gth-1), "_root.panel.vak"+i+"."+_root.activeitem.substring(0,_root.activeitem.len gth-1)+b, b);

_root.panel["vak"+i+"."+_root.activeitem]._x = _root.itemstats["i"+i+"x"];
_root.panel["vak"+i+"."+_root.activeitem]._y = _root.itemstats["i"+i+"y"];


//einde plaats items
}
}
}

flx
09-29-2002, 05:50 PM
Haven't a clue as to what that is all about but I wish I could write code like that... :confused:

Billy T
09-29-2002, 11:13 PM
is there a question in there somewhere?

Jesse
09-30-2002, 12:26 AM
We just updated the forums to a new version. Each time we have to remember to hack the codes back in. So AS tags wont work today. Don't worry, when they get updated all your code will be updated.