I just started learning actionscript, so easy on the die hard terms
Here’s an image:
Here’s the action attached to the MCSlang MC:
on (rollOver) {
_root.MCSlang.gotoAndPlay(“FOut”);
}
on (rollOut) {
_root.MCSlang.gotoAndPlay(“FIn”);
}
on (release) {
_root.diepte +=1
_root.MCBGSlang.swapDepths(_root.diepte);
_root.MCSlang._visible = 1;
_root.MCHage._visible = 1;
_root.MCSchild._visible = 1;
_root.MCKrok._visible = 1;
switch (_root.exitdier) {
case undefined :
_root.MCBGSlang.gotoAndPlay(“Start”);
break;
case “exitslang” :
break;
case “exithage” :
_root.MCBGSlang.gotoAndPlay(“Start”);
_root.MCHage.gotoAndPlay(“FIn”);
break;
case “exitschild” :
_root.MCBGSlang.gotoAndPlay(“Start”);
_root.MCSchild.gotoAndPlay(“FIn”);
break;
case “exitkrok” :
_root.MCBGSlang.gotoAndPlay(“Start”);
_root.MCKrok.gotoAndPlay(“FIn”);
break;
}
_root.MCSlang._visible = 0;
_root.exitdier = “exitslang”;
}
I’m using a script I found here, on kirupa to swap the backgrounds (MCBGSlang/MCBGHage, …). I used swapDepths because the background fades in, and I want it to fade in from the previous selected animal/background.
Now, the problem is, the backgrounds are in front of EVERYTHING!
How do i keep it where it should be – in the background? Without too much hocup pocus of course
tia!