progressive enhancement with flash

38
Progressive Enhancement with Flash Yahoo! Developer Summit London, 2007

Upload: spjwebster

Post on 22-May-2015

4.593 views

Category:

Business


1 download

DESCRIPTION

Flash is often viewed as an 'all or nothing' technology, where either your site is made up of the holy troika of web standards technologies (that'd be HTML/CSS/JS) or it's 100% Flash and screw those who don't have the right version of the Flash Player. There is a happy medium, where Flash can fit into the progressive enhancement approach we all use with HTML/CSS/JS sites, leveraging the advanced features of the Flash Player for those users that have it.

TRANSCRIPT

Page 1: Progressive Enhancement with Flash

Progressive Enhancement

with FlashYahoo! Developer Summit

London, 2007

Page 2: Progressive Enhancement with Flash

Huh?

Page 3: Progressive Enhancement with Flash

A quick detour...Flickr Web Upload

Page 4: Progressive Enhancement with Flash

What is progressive enhancement?

Page 5: Progressive Enhancement with Flash

“making web sites accessible [...] to people using different

operating systems, web browsers and devices”

Page 6: Progressive Enhancement with Flash

HTML

Content & structure

Progressive enhancement

Page 7: Progressive Enhancement with Flash

HTML

CSS

Style

Progressive enhancement

Page 8: Progressive Enhancement with Flash

HTML

CSS

JavaScript

Behaviour

Progressive enhancement

Page 9: Progressive Enhancement with Flash

HTML

CSS

JavaScript

Flash/Flex

Advanced style& behaviour

Progressive enhancement

Page 10: Progressive Enhancement with Flash

How does the Flickr uploadpage work?

Page 11: Progressive Enhancement with Flash

Flickr web upload page

How does Flickr work?

Page 12: Progressive Enhancement with Flash

Flickr web upload page

How does Flickr work?

Server

Page 13: Progressive Enhancement with Flash

Flickr web upload page

CSS

How does Flickr work?

Server

Page 14: Progressive Enhancement with Flash

Flickr web upload page

CSS

Server

Flickr without Flash

Browser handles file uploading

Page 15: Progressive Enhancement with Flash

Flickr web upload page

CSS

Server

Flickr with Flash

JS

Page 16: Progressive Enhancement with Flash

Flickr web upload page

SWF

CSS

Flickr with Flash

JS

ServerFlash has asynchronous file upload

Page 17: Progressive Enhancement with Flash

Flickr web upload page

SWF

JS

CSS

Server

Flickr with Flash

JavaScript talks to Flash

Page 18: Progressive Enhancement with Flash

Flickr web upload page

SWF

JS

CSS

Server

Flickr with Flash

Flash uploads the files

Page 19: Progressive Enhancement with Flash

What other functionalitycan I steal from Flash?

Page 20: Progressive Enhancement with Flash

How about cross-domain sockets for push content?

Page 21: Progressive Enhancement with Flash

Remember Comet?

Page 22: Progressive Enhancement with Flash

Web page

Remember Comet?

Page 23: Progressive Enhancement with Flash

Web page

Server

Remember Comet?

Page 24: Progressive Enhancement with Flash

Web page

Server

HACK

HACK

HACKHACK

HACK

HACK

HACKHACK

HACK

HACKHACK

HACK

HACKHACK

Remember Comet?

Page 25: Progressive Enhancement with Flash

Web page

SWF

JS

Server

Comet, without the hacks

Page 26: Progressive Enhancement with Flash

A quick (ish) example...Simple IM

Page 27: Progressive Enhancement with Flash

But what about when Flash is visible?

Page 28: Progressive Enhancement with Flash

Web page

Visible Flash

Page 29: Progressive Enhancement with Flash

Web pageJS

Visible Flash

Page 30: Progressive Enhancement with Flash

Web page

SWF

JS

Visible Flash

Page 31: Progressive Enhancement with Flash

Web page

SWF

JS

Visible Flash

Pull web content from page

Page 32: Progressive Enhancement with Flash

Web page

SWF

JS

Visible Flash

Pass content to SWF file

Page 33: Progressive Enhancement with Flash

A B C

5 9 11

22 31 77

85 23 1

Turn boring data tables...

Page 34: Progressive Enhancement with Flash

0

37.5

75.0

112.5

150.0

20042005

20062007

A B C

...into pretty interactive graphs

Page 35: Progressive Enhancement with Flash

In conclusion

Page 36: Progressive Enhancement with Flash

In conclusionUse SWFObject to embed Flash content

Upgrade alternate content or functionality with Flash

Steal as many features as you can from Flash - it’s all free.

Page 37: Progressive Enhancement with Flash

Questions?