Cold Fusion & Flash

Post on 19-Jan-2016

28 views 0 download

description

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 - PowerPoint PPT Presentation

Transcript of Cold Fusion & Flash

Cold Fusion & Flash

Shlomy Gantz

CoreActive ACG

July 2000

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

What is Flash

AlternativeAlternative

Vector basedVector based

““compiled”compiled”

StandardStandard

Why should I care about flash ? ...Why should I care about flash ? ...

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Why use Flash

Advanced interfaceAdvanced interface CompatibilityCompatibility Streaming animation/audio/contentStreaming animation/audio/content Compiled , Small file sizeCompiled , Small file size Timeline Timeline Extremely Fast DevelopmentExtremely Fast Development Instantly package into ExecutableInstantly package into Executable

Yeah .. Sure …but why should we care Yeah .. Sure …but why should we care

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Interface Importance - why do we care ?

The only thing the user seesThe only thing the user sees Usability Usability Quick Access to informationQuick Access to information Allows many people to use it by applying Allows many people to use it by applying

standards standards

Ok ok … show us some stuff ….Ok ok … show us some stuff ….

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Integration methods

CFML / JS CFML / JS PushingPushing information to Flash information to Flash

<HTML>

<SCRIPT LANGUAGE=“javascript”>

startObj.SetVariable("/:First_Name", "#First_Name#");

</SCRIPT>

</HTML>

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Integration methods

Flash Flash PullingPulling information from CFML information from CFML

<HTML>

</HTML>

1 Shlomy Gantz- Integration with flash

3. Robi Sen - Future of e-comm

2 Steve Nelson- Advanced fusebox

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Integration methods

Generator compiling on the flyGenerator compiling on the fly

MP3MP3

JPGJPG

ChartChart

TickerTicker

etc..etc..

Doesn’t this cost like $30,000 … I’ll have to mortgage my kids Doesn’t this cost like $30,000 … I’ll have to mortgage my kids

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

URL parameters integration

URL parameters integrationURL parameters integration

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

URL parameters integration

URL parameters example - BannerURL parameters example - Banner

URL parameters example 2 - Order FormURL parameters example 2 - Order Form

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

URL integration - The good Vs. evil

Simple to use , Easy to implementSimple to use , Easy to implement No Flash knowledge neededNo Flash knowledge needed It’s simpleIt’s simple It’s really simpleIt’s really simple It’s really really simpleIt’s really really simple

Hmmm…. Hmmm….

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

URL integration - Remember !

Can only load once per pageCan only load once per page URL variables are “exposed”URL variables are “exposed”

Urlencodedformat() Urlencodedformat() & at the end& at the end use and endstring use and endstring

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

JavaScript integration

JavaScript IntegrationJavaScript Integration

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

JavaScript integration

JavaScript example - CF MWJavaScript example - CF MW

JavaScript example 2 - Order FormJavaScript example 2 - Order Form

JavaScript example 3 - PlayerJavaScript example 3 - Player

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

JavaScript integration - good Vs. evil

Manipulate flash using almost all FS commandsManipulate flash using almost all FS commands Control from Browser window levelControl from Browser window level Client side processingClient side processing

Browser CompatibilityBrowser Compatibility Extra point of failureExtra point of failure

That was cool …. But I don’t want to learn javascript .. That was cool …. But I don’t want to learn javascript ..

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Flash “Load Variables”

Flash "Load Variables" Flash "Load Variables"

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Flash “Load Variables”

Flash “Load Variables” example - CFMWFlash “Load Variables” example - CFMW

Flash “Load Variables” example 2 - Order FormFlash “Load Variables” example 2 - Order Form

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Flash “Load Variables” - good Vs. evil

Connects directly with backend (transparent to Connects directly with backend (transparent to user)user)

URL is not visible to user URL is not visible to user

Hard to detect CF errorsHard to detect CF errors

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Flash “Load Variables” - Remember !

Urlencodedformat()Urlencodedformat() & at the end AND & at the beginning& at the end AND & at the beginning check you application.log check you application.log Remember ! every time you run load variables Remember ! every time you run load variables

you run a cfm file .. you run a cfm file ..

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Generator integration

What is generator ? What is generator ? How is it different from simple Flash ?How is it different from simple Flash ?

MP3MP3

JPGJPG

ChartChart

TickerTicker

etc..etc..

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Generator integration

{} inside generator{} inside generator .swt template - .swf template .swt template - .swf template CFX_GenerateCFX_Generate

<cfx_generate template=“c:\wwwroot\mytemp.swt” <cfx_generate template=“c:\wwwroot\mytemp.swt” type=“swf” file=“c:\wwwroot\mytemp.swf”>type=“swf” file=“c:\wwwroot\mytemp.swf”>

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Integration methods - summary

Appending to Movie URL Appending to Movie URL Flash as JavaScript ObjectFlash as JavaScript Object Flash -Load VariablesFlash -Load Variables GeneratorGenerator

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Working with a Flash Artist

Define your variables (I/O , types …)Define your variables (I/O , types …) Go Program …..leave the flash guy alone …Go Program …..leave the flash guy alone … Integrate CFM files with flash stringIntegrate CFM files with flash string TEST TEST go eat lunch ….go eat lunch ….

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Working with a Flash - Remember !

keep validation in one placekeep validation in one place

keep .fla and swf files synchronizedkeep .fla and swf files synchronized

keep it simplekeep it simple

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Flash Future - Flash 5

XML supportXML support HTML inline integrationHTML inline integration New ActionScript (JS)New ActionScript (JS) Better UI and Object browserBetter UI and Object browser New “widgets” modulesNew “widgets” modules

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

When not to use flash

When there is no need to ... When there is no need to ...

when simple HTML is enoughwhen simple HTML is enough ““weak” clients …(486, P75 ..)weak” clients …(486, P75 ..) when building something for yourself …. After when building something for yourself …. After

all we are ….all we are ….

PROGRAMMERSPROGRAMMERS

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

Thanks …..

Shlomy Gantz - www.coreactive.comShlomy Gantz - www.coreactive.com

shlomygantz@hotmail.comshlomygantz@hotmail.com

Amit Pitaru - www.pitaru.comAmit Pitaru - www.pitaru.com

amit@pitaru.comamit@pitaru.com

“Integrating Cold Fusion and Flash - Copyright CoreActive ACG 2000 -

QA

What the $%@$ was he talking about ?What the $%@$ was he talking about ? I want to go to lunch ….I want to go to lunch …. Is this guy out of his mind ???Is this guy out of his mind ??? I want to go to lunch …..I want to go to lunch ….. Can this guy please stop talking so I can go toCan this guy please stop talking so I can go to

LUNCH !LUNCH !