all groups > flash actionscript > august 2006 >
You're in the

flash actionscript

group:

createTextField covers up invisble buttons


createTextField covers up invisble buttons mgschange
8/23/2006 11:41:16 PM
flash actionscript:
I have invisible nav buttons created in the authoring environment, that
navigate to a particular frame. When I use MovieClip.createTextField to put
text names to where the buttons are, the button function is lost. It seems
that script-created text covers up the buttons, I just can't get to them. I've
tried changing the depth but have not been successful.

My project has background movie clips that I make visible or not, depending on
user actions. The text that "names" those areas needs to change color
according to the background so it can be seen; e.g., white text over a black
clip, black text over a yellow clip, and red text over a white clip. I have
tried making this text into movie clips but it seems to crash the computer.
And I have tried colorTransform on movie clips text and that works, except when
the user goes to a previous frame when all color transforms are lost. Can you
susggest a better way to do this, that is, permanently change text color,
depending on user responses?

Thanks
Re: createTextField covers up invisble buttons NSurveyor
8/24/2006 2:21:31 AM
If your textfield is my_txt, you could use my_txt.selectable = false; I think
this should solve the first problem.

For the second, I don't see why you can use something like: my_txt.textColor =
0xFF000; (changes the text color to red)
AddThis Social Bookmark Button