The document discusses mashups and various technologies used to create them such as Flex, E4X, HTTPService, crossdomain.xml, and AMF. It provides examples of using APIs from Amazon, Flickr, Yahoo, and Google to retrieve and combine data from multiple sources into new applications. It also discusses platforms like Yahoo Pipes that allow creating mashups visually without programming.
6. crossdomain.xml policy Flash Player can connect on any domain: <?xml version="1.0 "?> <!DOCTYPE cross-domain-policy SYSTEM ➥ "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <allow-access-from domain="*"/> </cross-domain-policy> restrict the connection to a particular site: <allow-access-from domain="www.site1.com"/> <allow-access-from domain="site2.com"/> secure server connection use secure="true“: <allow-access-from domain="www.site3.com" secure="true" />
7. crossdomain.xml policy continue Allow access to every server that ends with a certain name by using an asterisk (*) sign: <allow-access-from domain="*.yahoo.com" /> You can allow access to a specific IP address: <allow-access-from domain="66.500.0.20" /> Best way to find the cross domain policy: http://maps.yahoo.com/crossdomain.xml
8.
9.
10. E4X is preferred over regular XML when dealing with XML responses, since you can access the results easily and can perform expressions to filter the results. E4X is a language in its own right, and it has been incorporated into ActionScript 3.0. Many claim E4X to be a simple and easy way to access XML; however, it is not as easy as people make it out to be. To underscore this point, let’s take a look at E4X syntax. <employees> <employee> <name>John Do</name> <phone>212-222-2222</phone> <age>20</age> <email>john@youremail.com</email> </employee> </employees> var employeesList:XML = event.result as XML; var len:int = employeesList.employees.employee.length(); var results1:XMLList = employeesList.employees.employee; var results2:XMLList = employeesList.employees.child("*"); var results3:XMLList = employeesList.employees.*; var results4:XMLList = employeesList..employee; var filter1:XML = employeesList.employees.employee[0]; var filter2:XMLList = employeesList.employees.employee. (phone == '212-333-3333'); var filter3:XMLList = employeesList.employees. *.(age >= 19 || age == 18);