Answered
I need to remove a library item from the stage
Right now I have a button that brings a library symbol to the stage. Ideally, I want to be able to click on the symbol itself to make itself from the stage. Can anyone help me with this?
Right now I have a button that brings a library symbol to the stage. Ideally, I want to be able to click on the symbol itself to make itself from the stage. Can anyone help me with this?
for example:
var sym:WhateverClass=new WhateverClass();
sym.addEventListener(MouseEvent.CLICK,clickF);
function clickF(e:MouseEvent):void{
e.currentTarget.parent.removeChild(e.currentTarget);
}
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.