flash for cfers an introduction to rich internet application development
TRANSCRIPT
![Page 1: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/1.jpg)
Flash for CFers
An Introduction to Rich Internet Application Development
![Page 2: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/2.jpg)
About This Session
• Explanation of an RIA
• Examples of RIAs
• Advantages and “challenges”
• What Flash can do
• Deconstructing a simple RIA
• How Flash and RIAs relate to ColdFusion
![Page 3: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/3.jpg)
What is an RIA?
• Applications that download over the Internet, but run locally on the client
• Primarily exchange only data over socket connections after an initial download rather than “pages”
• Rich Internet “Applets”
• Examples…
![Page 4: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/4.jpg)
Advantages of RIAs
• More interactive, intuitive, entertaining, streamlined user interface
• More advanced functionality than HTML
• More efficient application model (only data being transferred, not entire pages)
• Ubiquitous, cross-platform support
![Page 5: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/5.jpg)
RIA Considerations I
• Performance gains may be negligible because:The time it takes for components to render new
data setsBrowsers are extremely optimized and render
HTML very fastCSS dramatically reduces the size of HTML files
(though still has a somewhat limited audience)Browsers are very good at caching
![Page 6: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/6.jpg)
RIA Considerations II
• There is an initial download with an RIA
• The structure of RIAs can be trickyPeople should only download what they
are going to use
• The Flash player doesn’t support file upload right now
• People are used to HTML
![Page 7: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/7.jpg)
RIA Final Consideration
• Above all else, pick the right tool for the job!
![Page 8: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/8.jpg)
How Does Flash Fit Into Your Application Architecture?
• Integrate Flash into your ColdFusion/HTML application
• Add a Flash interface to your ColdFusion application
![Page 9: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/9.jpg)
Communication Between Flash and ColdFusion
• loadVariables
• LoadVars
• XML
• Flash Remoting
• Web Services (SOAP)
• Socket Connections
![Page 10: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/10.jpg)
ActionScript 2.0• ActionScript is Flash’s scripting language, like
JavaScript• Object oriented
private, protected and public keywords
• Typed• Compile-time error checking!• Exception handling• Java-like syntax
ImportClasspath
• Inheritance
![Page 11: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/11.jpg)
Flash Video
• Flash supports its own video format (FLV)
• Flash encodes, the player decodes
• Sorenson Spark Codec (compression/decompression)
• True streaming capabilities with services like VitalStream.
![Page 12: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/12.jpg)
The Future of Flash RIAs
• Flash Authoring
• ColdFusion
• Central
• Flex
• Breeze
• FlashPaper
• RoboDemo
![Page 13: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/13.jpg)
Deconstructing an RIA
• Application demoA simple ColdFusion application
architectureWDDX for persistenceUsing web services to talk to FlashFlash media streamingSimple Flash animation
![Page 14: Flash for CFers An Introduction to Rich Internet Application Development](https://reader035.vdocuments.site/reader035/viewer/2022062423/56649f305503460f94c4b105/html5/thumbnails/14.jpg)
Application Diagram