View
1.734
Download
2
Category
Preview:
DESCRIPTION
Presented at Adobe Dev Summit 2009 in Chennai, explains basics of CF, Flex and how they work together
Citation preview
Flex and ColdFusionYash Mody
CTO, Tekno Point Multimediawww.teknopoint.in | yash@teknopoint.us| @yash_mody
www.teknopoint.info 2
Topics
• Introduction to ColdFusion• Flex and Data Communication• Flex - CF integration using Flash Remoting
http://www.teknopoint.info
www.teknopoint.info 3
Introduction to ColdFusion
• About the ColdFusion Server• IDE - ColdFusionBuilder• <CF Stuff>
http://www.teknopoint.info
www.teknopoint.info 4
About ColdFusion Server• Application Server built with Java• Runs with a Web Server• Extension - CFM• Current Version - 9• Key Features
http://www.teknopoint.info
www.teknopoint.info 5
About ColdFusion Server - 2
http://www.teknopoint.info
www.teknopoint.info 6
IDE - ColdFusionBuilder
• Obvious Advantages - Speed, Extensibility,Consistency
• Currently in Beta 2• Eclipse based - Consistent environment• Plug in for Flash Development
http://www.teknopoint.info
www.teknopoint.info 7
<CF Stuff>
• CFML - Tag language• CFScript - Script Language• CFM - ColdFusion Page• CFC - ColdFusion Component• CFM (Custom Tag)• RDS• ORM - Hibernate
http://www.teknopoint.info
www.teknopoint.info 8
<CF Stuff> - 2
http://www.teknopoint.info
www.teknopoint.info 9
Flex and Data Communication
• The 3 RPC Services– HTTPService– WebService– RemoteObject
• Demonstration: Communication over HTTP
http://www.teknopoint.info
www.teknopoint.info 10
RPC Component Protocol UsesHTTPService HTTP url
WebService SOAP wsdl
RemoteObject AMF destination
The 3 RPC Services in Flex
http://www.teknopoint.info
www.teknopoint.info 11
Communicating over HTTP
• Example: Using HTTPService for PDF Creation• Ingredients:
– Flex• navigateToURL
– ColdFusion• cfdocument
http://www.teknopoint.info
www.teknopoint.info 12
Flex and CF Integration
• Flash Remoting• The AMF advantage• Demonstration: Flex - CF app using
Remoting
http://www.teknopoint.info
www.teknopoint.info 13
Flash Remoting• How it
works
http://www.teknopoint.info
www.teknopoint.info 14
AMF Note• A typical AMF Packet
http://www.teknopoint.info
www.teknopoint.info 15
AMF Advantage
http://www.teknopoint.info
www.teknopoint.info 16
Flex - CF app using Remoting
• Example: Accessing Data using CF• Key Ingredients
– Flex• Remote Object (source, destination)• ResultEvent• Form and DataGrid
– ColdFusion• DataSource• cffunction
http://www.teknopoint.info
Questions…
http://www.teknopoint.info
www.teknopoint.info 18©Tekno Point Multimedia www.teknopoint.info
yash@teknopoint.inwww.teknopoint.inTw: @yash_mody
Thank You
http://www.teknopoint.info
Recommended