# Depth issue with dynamically created textboxes and ungrouped/non-symbol objects

**URL:** <https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591>\
**Category:** Uncategorized\
**Created:** [August 11, 2004, 12:12am UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591 "2004-08-11T00:12:02Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prophet](https://avatars.discourse-cdn.com/v4/letter/p/838e76/32.png) [@Prophet](https://forum.kirupa.com/u/Prophet)\
**Post date:** [August 11, 2004, 12:12am UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/1 "2004-08-11T00:12:02Z")

</div>

wow that was a mouthful…  
anyway…  
im building a full as anything text-typing-component… easily modified and adapted etc…one problem however… (well at the moment there are several niggling little problems but hey! lol)  
i came across a depth issue in testing… its a little peculiar so you will have to bear with me…  
i have 2 layers, called\* typer layer\* and _plain layer_… on the plain layer i have drawn out a shape… like a circle for instance…  
if _plain layer_ is on top of _typer layer_ everything works fine.  
if _plain layer_ is below _typer layer_ the typer does not type… it doesnt even show up…  
at present the dynamically created text field into which the typing text will be put into has a depth equivalent to that of a guide inside the component (just a plain mc used for determining sizes etc nothing special) +1 i added 1 to its current depth because if i dont i only seem to get EITHER the circle OR the typer… whereas if i add 1, i get EITHER the typer AND the circle OR just the circle…  
but this doesnt make sense does it? i mean if the _typer layer_ is on top then it has a higher depth (ie. closer to zero as depths are currently in the negatives still ;)) so if i add 1 it shouldnt conflict with anything and i should get it typing and displaying the circle surely?  
and if it is below then the circle has a higher depth so in this respect if the typer wouldnt work when it is on the bottom i could understand this as the depths would be conflicting and as such the dynamically created text field couldnt be created in the first place because the depth level is already occupied… im not entirely sure if that would be true but regardless, the reverse is happening!

what is truly bamboozling me though is that if i convert the circle into a movieclip everything works fine even if they are on the same layer… like it should…

can anybody help?

if you dont understand what im struggling to ask here, please ask and i will post the beta typer here and then walk you through the problem…

ANY help/input is welcome because i really am stumped…

Prophet.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2004, 5:12pm UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/2 "2004-08-11T17:12:44Z")

</div>

14 views but no replies ☹  
nebody got ne ideas at all??

Prophet.

PS note i dont get this problem if i have text boxes below the typer… its just vector images (drawn in flash) and images… ok this is startin to get confusing so (as far as i know):

**WORKS REGARDLESS:**  
symbols  
text

**DOESNT WORK WHEN TYPER IS ON TOP OF:**  
vector art (lines, fills, circles, squares… everything you draw in flash)  
images

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2004, 5:55pm UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/3 "2004-08-11T17:55:39Z")

</div>

I get a headache when reading this much explaining 😛  
No doubt you know exactly what you’re talking about, but it just won’t insert my brain.  
So how about that fla, I might be of a bit of help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2004, 6:53pm UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/4 "2004-08-11T18:53:16Z")

</div>

ok thats the fla (with instructions on install)  
all you have to do to pogger it up is put one of the things in the list at the bottom of post #2 in a separate layer… beneath the layer the typer is on…

cheers for takin a look at least…

Prophet.

PS if you can find a better way of deleting it (youll see what i mean ifu read instructions ;)) pls drop me a line: [samyoue@gmail.com](mailto:samyoue@gmail.com)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2004, 7:52pm UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/5 "2004-08-11T19:52:37Z")

</div>

> [@Prophet](#):
>
> ok thats the fla (with instructions on install)  
> all you have to do to pogger it up is put one of the things in the list at the bottom of post #2 in a separate layer… beneath the layer the typer is on…
> 
> cheers for takin a look at least…
> 
> Prophet.
> 
> PS if you can find a better way of deleting it (youll see what i mean ifu read instructions ;)) pls drop me a line: [samyoue@gmail.com](mailto:samyoue@gmail.com)

No answers here i`m afraid but i changed the code to  
d = TboxGuide.getDepth()+5  
and tested with tons of stuff and it seemed fine.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2004, 10:48pm UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/6 "2004-08-11T22:48:38Z")

</div>

yeah until we get more than 5 layers im guessing… :S

thanks 4 havin a go as wel…

Prophet.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2004, 10:50pm UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/7 "2004-08-11T22:50:44Z")

</div>

> [@Prophet](#):
>
> yeah until we get more than 5 layers im guessing… :S
> 
> thanks 4 havin a go as wel…
> 
> Prophet.

no, i tried 10 layers above/10 below and 10 on the same layer

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2004, 10:58pm UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/8 "2004-08-11T22:58:00Z")

</div>

yeah?  
spooky…  
will hav a look, cheers!

Prophet.

EDIT:- just tried it and if i do that then the typer types… but all the layers below dont show! (i had 15 layers, typer on layer 8 and circles on the rest… the circles on layers above the typer were shown but those below were not…) man this is weird!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2004, 7:09am UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/9 "2004-08-12T07:09:18Z")

</div>

> [@Prophet](#):
>
> yeah?  
> spooky…  
> will hav a look, cheers!
> 
> Prophet.
> 
> EDIT:- just tried it and if i do that then the typer types… but all the layers below dont show! (i had 15 layers, typer on layer 8 and circles on the rest… the circles on layers above the typer were shown but those below were not…) man this is weird!

Maybe you should have tried squares :lol: I`m thinking of developing a new component too, The circle shape removal tool.

Sorry Prophet, i spent well over an hour trying different ideas with no success. Either got the component above everything or below everything…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 12, 2004, 10:14pm UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/10 "2004-08-12T22:14:21Z")

</div>

Its quite peculiar isnt it… :S

Prophet.

PS ne other peeps had a go?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 13, 2004, 6:24pm UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/11 "2004-08-13T18:24:20Z")

</div>

for those interested i solved it:

```auto
d = this.getDepth()+1

```

soz2 dbl post but i jus solved it an edited over my request for more help 😉

Prophet.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 13, 2004, 8:11pm UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/12 "2004-08-13T20:11:24Z")

</div>

> [@Prophet](#):
>
> for those interested i solved it:
> 
> ```auto
> d = this.getDepth()+1
> 
> ```
> 
> soz2 dbl post but i jus solved it an edited over my request for more help 😉
> 
> Prophet.

Good.  
Now that you have it bug free (and quite a small file), there`s no chance MM will want to buy it!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 14, 2004, 12:50am UTC](https://forum.kirupa.com/t/depth-issue-with-dynamically-created-textboxes-and-ungrouped-non-symbol-objects/60591/13 "2004-08-14T00:50:11Z")

</div>

lol im sure i can adapt it to make it more buggy4commercial reasons! 😉

Prophet.

EDIT:- for now tho… the [free version](http://www.kirupaforum.com/forums/showthread.php?p=602726#post602726) 😉
