When you create a flex application, you create and create visual elements using MXML. Its language is XML / HTML, from which you can use the component in such a way as:
<progressbar id='progress_bar' />
when your flex application compiles, this material is converted to ActionScript 3.
MXML. , ActionScript.