cold fusion & flash

27
Cold Fusion & Flash Shlomy Gantz CoreActive ACG July 2000

Upload: amma

Post on 19-Jan-2016

28 views

Category:

Documents


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

Page 1: Cold Fusion & Flash

Cold Fusion & Flash

Shlomy Gantz

CoreActive ACG

July 2000

Page 2: Cold Fusion & Flash

“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 ? ...

Page 3: Cold Fusion & 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

Page 4: Cold Fusion & Flash

“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 ….

Page 5: Cold Fusion & Flash

“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>

Page 6: Cold Fusion & Flash

“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

Page 7: Cold Fusion & Flash

“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

Page 8: Cold Fusion & Flash

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

URL parameters integration

URL parameters integrationURL parameters integration

Page 9: Cold Fusion & Flash

“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

Page 10: Cold Fusion & Flash

“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….

Page 11: Cold Fusion & Flash

“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

Page 12: Cold Fusion & Flash

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

JavaScript integration

JavaScript IntegrationJavaScript Integration

Page 13: Cold Fusion & Flash

“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

Page 14: Cold Fusion & Flash

“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 ..

Page 15: Cold Fusion & Flash

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

Flash “Load Variables”

Flash "Load Variables" Flash "Load Variables"

Page 16: Cold Fusion & Flash

“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

Page 17: Cold Fusion & Flash

“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

Page 18: Cold Fusion & Flash

“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 ..

Page 19: Cold Fusion & Flash

“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..

Page 20: Cold Fusion & Flash

“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”>

Page 21: Cold Fusion & Flash

“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

Page 22: Cold Fusion & Flash

“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 ….

Page 23: Cold Fusion & Flash

“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

Page 24: Cold Fusion & Flash

“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

Page 25: Cold Fusion & Flash

“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

Page 26: Cold Fusion & Flash

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

Thanks …..

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

[email protected]@hotmail.com

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

[email protected]@pitaru.com

Page 27: Cold Fusion & Flash

“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 !