If object true / false, go to scene
Hello. I want to ask something and I hope somebody would help.
I want to make a button go to particular scene when particular items are hidden and exist.
I tried this, however it doesn't work.
but_yes.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_13);
function fl_ClickToGoToAndPlayFromFrame_13(event:MouseEvent):void
{ if(book_red.visible = true)
if(skirt.visible = true)
if(book_purple.visible = true)
if(belt.visible = true)
if(doll.visible = true)
if(plate.visible = true)
if(paper.visible = true)
if(paper2.visible = true)
if(wardrobe_door_close.visible = false)
if(blanket_tidy.visible = false)
{
gotoAndPlay(99);
blanket_mess.visible = false;
}
}
I wonder where do I do wrong or lack.
