circle object not appearing in scene for hazard spotting game
Picture Reference
The idea is that when the popup box closes (code works), the red ring will appear around each kitchen object and remains there. The issue i am having is the red circle isn't visible after clicking the closebutton.
Any help is much appreciated, many thanks!
Code is below:
My current code:
stage.enableMouseOver();
//PAN
var root = this;
root.infobox.visible = false;
root.hazard_pan.visible = false;
root.infobox.closebtn.addEventListener("click", closeInfoBox);
this.pan.addEventListener("click", panClick);
function panClick()
{
root.infobox.visible = true;
//root.infobox.title.text = "Monkey";
//root.infobox.description.text = "Information about the monkey.";
}
function closebtnClick()
{
this.hazard_pan.visible = true;
root.hazard_pan.visible = true;
}
function closeInfoBox()
{
root.infobox.visible = false;
}
