does anyone know how to make a symbol become invisible when clocked then visible when clicked again in action script 3? i tried using these codes
glasses.addEventListener(MouseEvent.CLICK, button_9_clk);
function button_9_clk(event:MouseEvent):void{
glasses.visible = !(glasses.visible)
}
and this
glasses.addEventListener(MouseEvent.MOUSE_UP,But_glasses_Pressed);
function But_glasses_Pressed(event:MouseEvent)
{
Glasses.visible = !( Glasses.visible);
}
but all that happens is the symbol is invisible when clicked but i cant clock again to make it reappear. also zone kind of does something like this but i believe the method is different. there are a few of his flashes where you can toggle character clothing mainly shoes but it seems like for shoes on and off the leg symbol changes but is in sync with the animation when changing back and forth between on and off. any on knows how this is done also?