ianharrigan / haxeui

IMPORTANT NOTE! This repository is no longer maintained. Please consider the newer version: https://github.com/haxeui/haxeui-core
http://haxeui.org/
392 stars 46 forks source link

PopupManager.instance.hidePopup(); does not working as intended in Flash target. #339

Closed notalentgeek closed 8 years ago

notalentgeek commented 8 years ago

Check my example here. https://notalentgeek.itch.io/e-haxeopenflmuseummanager

The translucent overlay display is still in the screen when the popup is gone. Here is the screenshot. selection_002

ianharrigan commented 8 years ago

Hmmm... Strange. Do you have a minimal example that i can test

notalentgeek commented 8 years ago

Well I have a repository. https://github.com/NoTalentGeek/HaXeOpenFLMuseumManager

It is on Main.hx line 200.

However, I used the forked version of your haxeui library. https://github.com/NoTalentGeek/haxeui

And these libraries:

ianharrigan commented 8 years ago

Right, but i dont have time to wade through a large, working project looking for bugs to be honest. I would suggest you create a smaller / simpler project that does the same thing there (ie, a minimal example) and see if the problem persists there. If it does then i can probably help with that minimised scope.

Cheers, Ian

notalentgeek commented 8 years ago

Yeah no problem. It is quite big.

notalentgeek commented 8 years ago

It is the simplest code to hide and show a popup object. My problem is still present.

ianharrigan commented 8 years ago

Ok, thats much easier to work with ;). It seems a little strange to be removing a popup in an update look, but regardless, i wouldnt expect it to error. The error is that you are trying to remove the popup from a root and that popup display object isnt a child of the root (yet i presume).

Im going to tighten up removeChild calls to first make sure its actually a child. Give me 5 mins.

ianharrigan commented 8 years ago

Ok, should be fixed now in haxelib v1.8.17

notalentgeek commented 8 years ago

Hey it is perfect! Thank you so much Ian :)))).