Is it possible to removeChild inside a movieclip that has been placed in Stage from the library? JS
Hi. The movieclip, that was added to the main stage, is "inputs_1". Is there a possibility inside it, in the function given below, to pass the information to remove it from the main stage? In main stage i called it by this code:
var Inputs1 = new lib.inputs_1();stage.addChild(Inputs1)
Function im movieclip called: "inputs_1".
function gotoNextFrame(){
if (pointsInputs == 2 || chanceInputs == 2){
if(pointsInputs == 2){
outcome++;
UpdatePoints();
}
exportRoot.mouseEnabled=false;
let selected = [];
setTimeout(()=>{
pointsInputs = 0;
chanceInputs = 0;
exportRoot.stage.removeChild(exportRoot.Inputs1)
//this.removeChild(this);
//parent.removeChild(inputs_1)
exportRoot.gotoAndPlay('frame2');
}, 2000);
}
}As you can see above, I tried without success.
