flex application