flash actionscript:
I create a TextInput dynamically (with createClassObject). It works fine. I delete it and create a CheckBox at the same level. I delete it. I create the TextInput again at that level. It works fine. I delete it. I create a RadionButton at the same level. I delete it and create the TextInput again. Now the TextInput cannot accept focus and I cannot enter text in... God will bless the good people who will give me a hint :confused;
I wish I had a piece of sequential code that shows the phenomenum. It's a complicated applet. Objects are created and destroyed depending on user action. The same TextInput, created with the same createClassObject command, sometimes works properly and sometimes doesn't... What can make a TextInput to refuse accepting input?
And BTW I also discovered that if I set the text field of the TextInput to something, the text doesn't show in those cases when it doesn't receive input. If I create a CheckBox instead of a TextInput then no problem the box always gets input, even though nothing is changed except field type.
None of these. Moreover, the field sometimes works properly and sometimes not. The only difference is that if I create a CheckBox at the position of the TextInput and delete it before creating the TextInput, then all is fine. If I create a RadioButton at same position and save level and delete it before creating the TextInput, then the problem re-occurs. One more strange phenomenon that may be related - if I create the TextInput with a "label" field (I don't need it but the code remained from creating the CheckBox), then again same problem - the text doesn't show and the field doesn't receive input...
i can't duplicate your problem despite creating and deleting the components in the order you mentioned in your first message. you can try and copy pieces of your current problematic swf to another swf and try to duplicate the issue with the minimum coding/objects to narrow the problem's cause.
I'll try, but it's hell of work... Once I do it I will probably manage to isolate the problem by myself... I thought somebody here knows already about this TextInput bug in Flash... Anyway your willing to help and the efforts you have spent are are so much appreciated!
Don't see what you're looking for? Try a search.
|