how to build a druplash site?

31
Drupal + Flash = frontend backend Druplash Druplex

Upload: peter-arato

Post on 16-May-2015

2.426 views

Category:

Technology


2 download

DESCRIPTION

Brief introduction of a Druplash site.

TRANSCRIPT

Page 1: How to build a Druplash site?

Drupal + Flash = frontendbackend

DruplashDruplex

Page 2: How to build a Druplash site?

About me

Peter Arato http://drupal.org/user/428960 Work at: Pronovix Drupal developer (from Hungary)Interested in techLike Flash/Flex/AIR

Page 3: How to build a Druplash site?

How many of you like Flash?

?

Page 4: How to build a Druplash site?

How many of you have built a Drupal site that contained

Flash?

?

Page 5: How to build a Druplash site?

How many of you want to build a Flash - Drupal site, but have no

experience?

?

Page 6: How to build a Druplash site?

About Flash

Flash technologyFlex frameworkSWF container (small file size)ActionScript 3AIR, Flash player

Page 7: How to build a Druplash site?

Why we use Flash?

Animation3DSoundEffectTimelineModularity (component)Multi platform (almost)Information

Page 8: How to build a Druplash site?

Why are we afraid of using Flash (sites)?

?

Page 9: How to build a Druplash site?

Why are we afraid of using Flash?

SEObad URLsslowproblems in Unix / OS-X

Page 10: How to build a Druplash site?

Definitions

Page 11: How to build a Druplash site?

What is Druplash?

Communication

Graceful degradation

Dynamic content change

Deep linking

Ajax - RCP - HTTP - Services

Disabled browsers

History - URL

Frontend: FlashBackend: Drupal

Page 12: How to build a Druplash site?

Communication: Flash <-> JavaScript

Page 13: How to build a Druplash site?

JavaScript

Actionscript

Page 14: How to build a Druplash site?

Communication - Flash <HTTP> server

Page 15: How to build a Druplash site?

Actionscript

Page 16: How to build a Druplash site?

Communication - Flash <RCP> server

Page 17: How to build a Druplash site?

Actionscript

Page 18: How to build a Druplash site?

Graceful degradation

Page 19: How to build a Druplash site?

Deep linking

Page 20: How to build a Druplash site?

Modules

Page 21: How to build a Druplash site?

Services AMFPHP SWFAddressSWFObject Ajax Load

Communication layerEasy to extendAuthentication (Session + Key)

Transfers native ActionScript2/3 variable types Binary format

Embedding (= replace content to) SWF objectsDeep linking supportInitial variables to Flash

Dynamic JavaScript / CSS loading

Page 22: How to build a Druplash site?

Druplash process

Page 23: How to build a Druplash site?

The process - 1st request

Loading original non-Flash content

Redirect to basePath

Loading content of the given url

Replace content with Flash

Notify Flash about the state (news)

Flash changes it's state (if it wants)

example.com/news example.com/#/news (Ajax)

Page 24: How to build a Druplash site?

The process - navigation

Send request for a page (click)

Flash notifies SWFAddress

SWFAddress state changed

Ajax request to the server

Content elements recieved

Put content to the right place

example.com/#/news

(Flash -> JS)

example.com/#/about_us (Ajax) (JSON)

Page 25: How to build a Druplash site?

Implementation

Page 26: How to build a Druplash site?

Server side

Page 27: How to build a Druplash site?

Server side PHP

Page 28: How to build a Druplash site?

Client side - Flash Actionscript

Page 29: How to build a Druplash site?

Client side - JavaScript JavaScript

Page 30: How to build a Druplash site?

DEMO

Page 31: How to build a Druplash site?

Examples

http://www.stevenmerrilltenor.com/http://www.ilovetechno.be/http://www.bobdylan.com/ http://hyperblaster.org/http://www.martin-eng.com/