Ultimate Gear War
Join the alien war, prepare your gear and protect your base at all cost!
4.19 / 5.00 15,436 ViewsOk easy problem...The movieclip on the stage that I am using as a button has two layers inside it.
Bottom one vector data top one dynamic text. The button only works when I roll over the parts without dynamic text covering it.
Every other source Ive looked at tells me to set the dynamic text box to non selectable in the properties to fix it. The text box is non selectable. Ive checked multiple times.
Is there an easy fix? What Am i doing wrong? Any help appreciated.
...
At 5/7/12 05:09 AM, the1manwiththeplan wrote: Ok easy problem...The movieclip on the stage that I am using as a button has two layers inside it.
Bottom one vector data top one dynamic text. The button only works when I roll over the parts without dynamic text covering it.
Every other source Ive looked at tells me to set the dynamic text box to non selectable in the properties to fix it. The text box is non selectable. Ive checked multiple times.
Is there an easy fix? What Am i doing wrong? Any help appreciated.
Setting the textfield as non selectable only prevents users from painting the text with their mouse. The property to disable mouse interaction on an object is 'mouseEnabled', set that to false if you don't want something to interact with the mouse.
You can solve pretty much any problem you may have with AS3 by consulting the AS3 Language reference.
At 5/7/12 05:17 AM, ProfessorFlash wrote: Setting the textfield as non selectable only prevents users from painting the text with their mouse. The property to disable mouse interaction on an object is 'mouseEnabled', set that to false if you don't want something to interact with the mouse.
Yeah I thought that was the case, I only tried it out because Kirpua and a bunch of other forums claimed this was the solution. But anyway thanks for the mouseEnabled snippet it fixed all my problems =)
...
You can also set button.mouseChildren = false.