problem medkald af function fra anden function
Hej eksperterjeg har denne kode:
_root.tjek1.t1.onRelease = t1func;
function t1func(){
Status = new Status(1);
mycount = new mycount(_root.type1);
}
function Status(Num){
switch(num){
case 1:
_root.MyStatus1 = true;
break;
case 2:
_root.MyStatus2 = true;
break;
case 3:
_root.MyStatus3 = true;
break;
case 4:
_root.MyStatus4 = true;
break;
}
}
function mycount(Str){
switch(type){
case "a":
_root.aTotal = aTotal + 4;
break;
case "t":
_root.tTotal = tTotal + 4;
break;
case "p":
_root.pTotal = pTotal + 4;
break;
case "r":
_root.rTotal = rTotal + 4;
break;
}
}
men når jeg trykker på t1 knappen så sker der intet ?
men knappen "virker" for hvis jeg i t1func functionen skriver
_root.aTotal = 20; så bliver aTotal sat til 20.
