Need help figuring out this code. ClicktoHide
I'm working on a code that has a button that reveal a hidden object. Easy right? But I want the hidden object to reveal on a another frame.
Like Frame 1: Button that reveal hidden object on Frame 2
Frame 2: The object is revealed cause the button in Frame 1 is pressed
Frame 1:
NameOne.addEventListener(MouseEvent.CLICK, f1_ClickToHide);
function f1_ClickToHide(event:MouseEvent):void
{
NameTwo.visible(2) = true;
}
Frame 2:
NameTwo.visible(1) = false;
Don't know how that works. I test and get error
