Download presentation
Presentation is loading. Please wait.
Published byQuentin Owen Modified over 9 years ago
1
ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion Professional :: Manager, CFUGToronto :: Professor, Ryerson University; School of Image Arts, Toronto Flash Remoting: a Developers Perspective www.PangaeaNewMedia.ca
2
ktowes@PangaeaNewMedia.ca Advent 1 The ADVENT Labs Example can be found @ Macromedia.com Search for “ADVENT” This is an excellent example to demonstrate how Flash can supply a rich data management interface.
3
ktowes@PangaeaNewMedia.ca Advent 3
4
ktowes@PangaeaNewMedia.ca Agenda (:60min) 1.Review examples of Rich-UI 2.DISCUSS: The client and Server – Roles 3.Squash the perception of Flash 4.Context: Review of how data XFer “was” done 5.Introduction to Flash Remoting a.Getting Started b.ColdFusion Components c.Invoking CFCs in ColdFusion d.Invoking CFCs in Flash MX e.Debugging Tools (if we have time) f.DataGlue (in case we get Stuck )
5
ktowes@PangaeaNewMedia.ca CF & Flash + ColdFusion is the Glue that holds it all together - Ben Forta What is Flash MX and How does it Work?
6
ktowes@PangaeaNewMedia.ca Flash 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)
7
ktowes@PangaeaNewMedia.ca Remoting: Build the ColdFusion Component Our application requires 3 Methods inside the Component 1.Get the Park Types ::: getParkTypes(); 2.Get the List of Parks ( in the selected Type) ::: getParksList(parkType); 3.Get the Details of the Selected Park ::: getParkDetails(thisParkName);
8
ktowes@PangaeaNewMedia.ca Remoting: Calling the CFC – in ColdFusion Test the CFC by: Invoke the Component in ColdFusion
9
ktowes@PangaeaNewMedia.ca Remoting: Calling the CFC – in Flash MX (for comparison – review the same command from within Flash) Invoke the CFC inside Flash
10
ktowes@PangaeaNewMedia.ca ActionScript Steps to Connect 1.Develop the Layout 2.Include the NetServices Class Files 3.Set up the server connection 4.Invoke the CFC (consume the web service) 5.Build a default Responder
11
ktowes@PangaeaNewMedia.ca :: Develop the Layout (UI) What you Need to Know: 1)The Timeline 2)Text Fields 3)Flash UI Components
12
ktowes@PangaeaNewMedia.ca :: Text Fields and UI Components TEXT FIELDS FLASH UI COMPONENTS
13
ktowes@PangaeaNewMedia.ca ActionScript Steps to Connect 1.Develop the Layout 2.Include the NetServices Class Files* 3.Set up the server connection 4.Invoke the CFC (consume the web service) 5.Build a default Responder
14
ktowes@PangaeaNewMedia.ca ActionScript Steps to Connect 1.Develop the Layout 2.Include the NetServices Class Files 3.Set up the server connection* 4.Invoke the CFC (consume the web service) 5.Build a default Responder
15
ktowes@PangaeaNewMedia.ca ActionScript Steps to Connect 1.Develop the Layout 2.Include the NetServices Class Files 3.Set up the server connection 4.Invoke the CFC (consume the web service) 5.Build a default Responder
16
ktowes@PangaeaNewMedia.ca :: Remoting: Calling the CFC – in Flash MX Invoke the CFC inside Flash
17
ktowes@PangaeaNewMedia.ca ActionScript Steps to Connect 1.Develop the Layout 2.Include the NetServices Class Files 3.Set up the server connection 4.Invoke the CFC (consume the web service) 5.Build a default Responder
18
ktowes@PangaeaNewMedia.ca :: Default Responder 1 Flash will invoke a function when it has finished. This function is called the Default Responder: NameOfFunction_result(returnObject)
19
ktowes@PangaeaNewMedia.ca :: Default Responder 2 to populate the ComboBox Component use the setDataProvider method. ComponentName.setDataProvider(dataObj)
20
ktowes@PangaeaNewMedia.ca :: Default Responder 3 Access the Database Column By Name =Result.items[0].ParkName
21
ktowes@PangaeaNewMedia.ca DataGlue DataGlue.BindFormatStrings( lb_ParkList, result, "#parkName# (location: #city#, #state#)", "#parkName#");
22
ktowes@PangaeaNewMedia.ca Debugging
23
ktowes@PangaeaNewMedia.ca Macromedia DevCentre The Macromedia Developers Centre is the best online resource for integrating Flash MX and ColdFusion MX http://www.Macromedia.com/DesDev/
24
ktowes@PangaeaNewMedia.ca Inside Flash MX NOW AVAILABLE The most Comprehensive Book on Integrating Flash MX with ColdFusion MX
25
ktowes@PangaeaNewMedia.ca FlashCFM.com
26
ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion Professional :: Manager, CFUGToronto :: Professor, Ryerson University; School of Image Arts, Toronto Flash Remoting: a Developers Perspective www.PangaeaNewMedia.ca
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.