I’m trying to make some sort of hierarchy tree for as3. Now I COULD just throw them on the stage and put them in order, but I’ve been trying to make a dynamic class. For now, I’m working on the layout, but I’ve got three problems:
1. The code is super messy.
2. I’m not entirely sure about the math behind it.
3. After 1 layer the Y seems to not work.
anddd you can check out a demo here: https://www.dropbox.com/s/ads47ur6kvj22dl/TreeTest.zip
Any help would be greatly appreciated, my main goal here is to find a cleaner, and simpler way to create a dynamic tree.