[email protected] welcome to the new world kevin towes creative and technical director...
TRANSCRIPT
![Page 1: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/1.jpg)
<Kevin Towes> [email protected]
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
![Page 2: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/2.jpg)
<Kevin Towes> [email protected]
Advent 1
The ADVENT LabsExample can be found@ Macromedia.com
Search for “ADVENT”
This is an excellent example to demonstrate how Flash can supply a rich data management interface.
![Page 4: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/4.jpg)
<Kevin Towes> [email protected]
Agenda (:60min)
1.Review examples of Rich-UI2.DISCUSS: The client and Server – Roles
3.Squash the perception of Flash4.Context: Review of how data XFer “was”
done
5.Introduction to Flash Remotinga. Getting Startedb. ColdFusion Componentsc. Invoking CFCs in ColdFusiond. Invoking CFCs in Flash MXe. Debugging Tools (if we have time)f. DataGlue (in case we get Stuck )
![Page 5: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/5.jpg)
<Kevin Towes> [email protected]
CF & Flash
+
ColdFusion is the Glue that holds it all together
- Ben Forta
What is Flash MX and How does it Work?
![Page 6: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/6.jpg)
<Kevin Towes> [email protected]
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)
![Page 7: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/7.jpg)
<Kevin Towes> [email protected]
Remoting: Build the ColdFusion Component
Our application requires 3 Methods inside the Component1. 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);
![Page 8: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/8.jpg)
<Kevin Towes> [email protected]
Remoting: Calling the CFC – in ColdFusion
Test the CFC by: Invoke the Component in ColdFusion
![Page 9: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/9.jpg)
<Kevin Towes> [email protected]
Remoting: Calling the CFC – in Flash MX
(for comparison – review the same command from within Flash)
Invoke the CFC inside Flash
![Page 10: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/10.jpg)
<Kevin Towes> [email protected]
ActionScript Steps to Connect
1. Develop the Layout2. Include the NetServices Class Files3. Set up the server connection4. Invoke the CFC (consume the web
service)
5. Build a default Responder
![Page 11: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/11.jpg)
<Kevin Towes> [email protected]
:: Develop the Layout (UI)
What you Need to Know:1) The Timeline 2) Text Fields 3) Flash UI Components
![Page 13: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/13.jpg)
<Kevin Towes> [email protected]
ActionScript Steps to Connect
1. Develop the Layout2. Include the NetServices Class
Files*3. Set up the server connection4. Invoke the CFC (consume the web
service)
5. Build a default Responder
![Page 14: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/14.jpg)
<Kevin Towes> [email protected]
ActionScript Steps to Connect
1. Develop the Layout2. Include the NetServices Class Files3. Set up the server connection*4. Invoke the CFC (consume the web
service)
5. Build a default Responder
![Page 15: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/15.jpg)
<Kevin Towes> [email protected]
ActionScript Steps to Connect
1. Develop the Layout2. Include the NetServices Class Files3. Set up the server connection4. Invoke the CFC (consume the web
service)
5. Build a default Responder
![Page 16: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/16.jpg)
<Kevin Towes> [email protected]
:: Remoting: Calling the CFC – in Flash MX
Invoke the CFC inside Flash
![Page 17: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/17.jpg)
<Kevin Towes> [email protected]
ActionScript Steps to Connect
1. Develop the Layout2. Include the NetServices Class Files3. Set up the server connection4. Invoke the CFC (consume the web
service)
5. Build a default Responder
![Page 18: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/18.jpg)
<Kevin Towes> [email protected]
:: Default Responder 1
Flash will invoke a function when it has finished. This function is called the Default Responder:
NameOfFunction_result(returnObject)
![Page 19: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/19.jpg)
<Kevin Towes> [email protected]
:: Default Responder 2
to populate the ComboBox Componentuse the setDataProvider method.
ComponentName.setDataProvider(dataObj)
![Page 20: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/20.jpg)
<Kevin Towes> [email protected]
:: Default Responder 3
Access the Database Column By Name
=Result.items[0].ParkName
![Page 21: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/21.jpg)
<Kevin Towes> [email protected]
DataGlue
DataGlue.BindFormatStrings(lb_ParkList, result, "#parkName# (location: #city#, #state#)",
"#parkName#");
![Page 23: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/23.jpg)
<Kevin Towes> [email protected]
Macromedia DevCentre
The Macromedia Developers Centre is the best online resource for integrating Flash MX and ColdFusion MX
http://www.Macromedia.com/DesDev/
![Page 24: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/24.jpg)
<Kevin Towes> [email protected]
Inside Flash MX
NOWAVAILABLE
The mostComprehensive
Book onIntegrating
Flash MX withColdFusion MX
![Page 26: Ktowes@PangaeaNewMedia.ca Welcome to the New World Kevin Towes Creative and Technical Director Pangaea NewMedia, Inc. Toronto, Canada :: Certified ColdFusion](https://reader036.vdocument.in/reader036/viewer/2022062315/5697bf7d1a28abf838c845ed/html5/thumbnails/26.jpg)
<Kevin Towes> [email protected]
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