Title: Welcome to the New World
1Welcome to the New World
Flash Remoting a Developers Perspective
- Kevin Towes
- Creative and Technical Director
- Pangaea NewMedia, Inc.
- Toronto, Canada
- Certified ColdFusion Professional
- Manager, CFUGToronto
- Professor, Ryerson University School of
Image Arts, Toronto -
www.PangaeaNewMedia.ca
2Advent 1
The ADVENT Labs Example can be found _at_
Macromedia.com Search for ADVENT This is an
excellent example to demonstrate how Flash can
supply a rich data management interface.
3Advent 3
4Agenda (60min)
- Review examples of Rich-UI
- DISCUSS The client and Server Roles
- Squash the perception of Flash
- Context Review of how data XFer was done
- Introduction to Flash Remoting
- Getting Started
- ColdFusion Components
- Invoking CFCs in ColdFusion
- Invoking CFCs in Flash MX
- Debugging Tools (if we have time)
- DataGlue (in case we get Stuck ?)
5CF Flash
What is Flash MX and How does it Work?
ColdFusion is the Glue that holds it all
together - Ben Forta
6Flash Remoting Availability
- Flash Remoting Components are available in
- ColdFusion MX (native support)
- JRUN 4.0 (native support)
- IBM WebSphere (add-on)
- Microsoft ASP.NET (add-on)
7Remoting Build the ColdFusion Component
- Our application requires 3 Methods inside the
Component - Get the Park Types getParkTypes()
- Get the List of Parks ( in the selected Type)
getParksList(parkType) - Get the Details of the Selected Park
getParkDetails(thisParkName)
8Remoting Calling the CFC in ColdFusion
- Test the CFC by Invoke the Component in
ColdFusion
9Remoting Calling the CFC in Flash MX
- (for comparison review the same command from
within Flash) - Invoke the CFC inside Flash
10ActionScript Steps to Connect
- Develop the Layout
- Include the NetServices Class Files
- Set up the server connection
- Invoke the CFC (consume the web service)
- Build a default Responder
11 Develop the Layout (UI)
- What you Need to Know
- The Timeline
- Text Fields
- Flash UI Components
12 Text Fields and UI Components
TEXT FIELDS
FLASH UI COMPONENTS
13ActionScript Steps to Connect
- Develop the Layout
- Include the NetServices Class Files
- Set up the server connection
- Invoke the CFC (consume the web service)
- Build a default Responder
14ActionScript Steps to Connect
- Develop the Layout
- Include the NetServices Class Files
- Set up the server connection
- Invoke the CFC (consume the web service)
- Build a default Responder
15ActionScript Steps to Connect
- Develop the Layout
- Include the NetServices Class Files
- Set up the server connection
- Invoke the CFC (consume the web service)
- Build a default Responder
16 Remoting Calling the CFC in Flash MX
- Invoke the CFC inside Flash
17ActionScript Steps to Connect
- Develop the Layout
- Include the NetServices Class Files
- Set up the server connection
- Invoke the CFC (consume the web service)
- Build a default Responder
18 Default Responder 1
- Flash will invoke a function when it has
finished. This function is called the Default
ResponderNameOfFunction_result(returnObject)
19 Default Responder 2
- to populate the ComboBox Componentuse the
setDataProvider method. - ComponentName.setDataProvider(dataObj)
20 Default Responder 3
- Access the Database Column By Name
- Result.items0.ParkName
21DataGlue
- DataGlue.BindFormatStrings(
- lb_ParkList,
- result,
- "parkName (location city, state)",
"parkName")
22Debugging
23Macromedia DevCentre
- The Macromedia Developers Centre is the best
online resource for integrating Flash MX and
ColdFusion MX
http//www.Macromedia.com/DesDev/
24Inside Flash MX
- NOW
- AVAILABLE
- The most
- Comprehensive
- Book on
- Integrating
- Flash MX with
- ColdFusion MX
25FlashCFM.com
26Welcome to the New World
Flash Remoting a Developers Perspective
- Kevin Towes
- Creative and Technical Director
- Pangaea NewMedia, Inc.
- Toronto, Canada
- Certified ColdFusion Professional
- Manager, CFUGToronto
- Professor, Ryerson University School of
Image Arts, Toronto -
www.PangaeaNewMedia.ca