270 likes | 390 Views
Cold Fusion & Flash. Shlomy Gantz CoreActive ACG July 2000. What is Flash. Alternative Vector based “compiledâ€. Standard. Why should I care about flash ?. Why use Flash . Advanced interface Compatibility Streaming animation/audio/content Compiled , Small file size Timeline
E N D
Cold Fusion & Flash Shlomy Gantz CoreActive ACG July 2000
What is Flash • Alternative • Vector based • “compiled” Standard Why should I care about flash ? ...
Why use Flash • Advanced interface • Compatibility • Streaming animation/audio/content • Compiled , Small file size • Timeline • Extremely Fast Development • Instantly package into Executable Yeah .. Sure …but why should we care
Interface Importance - why do we care ? • The only thing the user sees • Usability • Quick Access to information • Allows many people to use it by applying standards Ok ok … show us some stuff ….
Integration methods • CFML / JS Pushing information to Flash <HTML> <SCRIPT LANGUAGE=“javascript”> startObj.SetVariable("/:First_Name", "#First_Name#"); </SCRIPT> </HTML>
Integration methods • Flash Pulling information from CFML <HTML> </HTML> 1 Shlomy Gantz- Integration with flash 2 Steve Nelson- Advanced fusebox 3. Robi Sen - Future of e-comm
Integration methods • Generator compiling on the fly MP3 JPG Chart Ticker etc.. Doesn’t this cost like $30,000 … I’ll have to mortgage my kids
URL parameters integration URL parameters integration
URL parameters integration URL parameters example - Banner URL parameters example 2 - Order Form
URL integration - The good Vs. evil • Simple to use , Easy to implement • No Flash knowledge needed • It’s simple • It’s really simple • It’s really really simple Hmmm….
URL integration - Remember ! • Can only load once per page • URL variables are “exposed” • Urlencodedformat() • & at the end • use and endstring
JavaScript integration JavaScript Integration
JavaScript integration JavaScript example - CF MW JavaScript example 2 - Order Form JavaScript example 3 - Player
JavaScript integration - good Vs. evil • Manipulate flash using almost all FS commands • Control from Browser window level • Client side processing • Browser Compatibility • Extra point of failure That was cool …. But I don’t want to learn javascript ..
Flash “Load Variables” Flash "Load Variables"
Flash “Load Variables” Flash “Load Variables” example - CFMW Flash “Load Variables” example 2 - Order Form
Flash “Load Variables” - good Vs. evil • Connects directly with backend (transparent to user) • URL is not visible to user • Hard to detect CF errors
Flash “Load Variables” - Remember ! • Urlencodedformat() • & at the end AND & at the beginning • check you application.log • Remember ! every time you run load variables you run a cfm file ..
Generator integration • What is generator ? • How is it different from simple Flash ? MP3 JPG Chart Ticker etc..
Generator integration • {} inside generator • .swt template - .swf template • CFX_Generate <cfx_generate template=“c:\wwwroot\mytemp.swt” type=“swf” file=“c:\wwwroot\mytemp.swf”>
Integration methods - summary • Appending to Movie URL • Flash as JavaScript Object • Flash -Load Variables • Generator
Working with a Flash Artist • Define your variables (I/O , types …) • Go Program …..leave the flash guy alone … • Integrate CFM files with flash string • TEST • go eat lunch ….
Working with a Flash - Remember ! • keep validation in one place • keep .fla and swf files synchronized • keep it simple
Flash Future - Flash 5 • XML support • HTML inline integration • New ActionScript (JS) • Better UI and Object browser • New “widgets” modules
When not to use flash • When there is no need to ... when simple HTML is enough • “weak” clients …(486, P75 ..) • when building something for yourself …. After all we are …. PROGRAMMERS
Thanks ….. • Shlomy Gantz - www.coreactive.com shlomygantz@hotmail.com • Amit Pitaru - www.pitaru.com amit@pitaru.com
QA • What the $%@$ was he talking about ? • I want to go to lunch …. • Is this guy out of his mind ??? • I want to go to lunch ….. • Can this guy please stop talking so I can go to LUNCH !