the problem is that when i use the event ( textfield.onChanged )
it doesn't work
i tried more & more , but in vain
i made dynamic textfield with instance name --> "ttt"
ttt.onChanged=function (){
..........
..........
..........
}
it doesn't work at all
i got mad
Oh, I get it, you want the onChanged handler to get called when you press the Button, right? At the moment, it is only called when you manually change the text by typing in the field. The purpose of the onChanged event is to tell you that the user has changed the text. In this case, when you are changing it yourself, you are expected to already know that the text is being changed (after all, you changed it).
However, you can just change your button code as follows if you want to get the event.
code:
on (release) {
ttt.text = "mahmoud"+random(20);
ttt.onChanged();
}