In asynchronous world there is often a need to show user, that application is doing something in the background, and it is not hang. When we can determine amount of time needed to perform some action, we should use ProgressBar controll, when there is no such possibility we should use ActivityIndicator. ActivityIndictator class does not have many usefull functions, the most interesting function one is animate(doAnimate:boolean). It starts (or stops) animation of indicator, this is used to produce impression that application is working on something. We will create simple search field with appriopriate icon and indicator. Let's start from TextInput: with(textInput) { x = 50; y = 50; width = 200; leftIcon = searchImage; leftIconMode = TextInputIconMode.ALWAYS; rightIcon = activityIndicator; rightIconMode = TextInputIconMode.NEVER; } We are using here the most usefull feature of TextInput control: left and ri...