RIAs are web applications that have features and functionality similar to desktop applications. They typically have a separate client and server component. Flex is a framework for developing RIAs using MXML and ActionScript. It allows building rich user interfaces, accessing data via web services, and deploying applications to the web or desktop. Flex applications consist of UI code in MXML, dynamic behavior in ActionScript, and data services. They are compiled to SWF files to run across browsers.