getting started with flex and php

37
Getting Started with Flex and PHP

Upload: ryan-stewart

Post on 28-Jan-2015

136 views

Category:

Technology


1 download

DESCRIPTION

Introduction to Flex for PHP developers with information on how to get started, what value Flex provides, and what tools to use.

TRANSCRIPT

Page 1: Getting Started with Flex and PHP

Getting Started withFlex and PHP

Page 2: Getting Started with Flex and PHP

Ryan Stewart

@ryanstewart

blog.digitalbackcountry.com

[email protected]

github.com/ryanstewart

500100 4400259

13 T

Live in Seattle, WA

Into: Beer, Mountaineering, Geolocation

Page 3: Getting Started with Flex and PHP

Agenda

What is Flex?Flex and PHP: The Why and the Workflows

Advanced PHP Features with FlexUsing PHP and the Flash Platform

Page 4: Getting Started with Flex and PHP
Page 5: Getting Started with Flex and PHP

Flex is Not:

Basic AnimationsBanner Ads

Simple VideoMenu Bars

Small Pieces of Interactivity

Page 6: Getting Started with Flex and PHP

Simple Animation, Vector Graphics, Banner Ads,Progressive Video

Interactive Widgets, Streaming

Video, Advanced Drawing, Sound Generation,

Filters/Effects

Real-Time CollaborationData Visualization, Gestures

RIAs, Games

HTML5HTML5

Pyramid of Flash Features and Use Cases

Page 7: Getting Started with Flex and PHP

Flex is Applications

Page 8: Getting Started with Flex and PHP

Flex is for Developers

Open Source SDKFamiliar Programming

Model3rd Party Libraries and

FrameworksDeveloper Tutorials

Page 9: Getting Started with Flex and PHP

Flex is Rich, Extensible Components

Page 10: Getting Started with Flex and PHP

Flex is Consistency

Page 11: Getting Started with Flex and PHP

Flex is Productivity

Page 12: Getting Started with Flex and PHP

Developer Tooling

Page 13: Getting Started with Flex and PHP

Flash BuilderBuilt on EclipseCode completion, syntax highlightingIncludes debugger, network monitorBuild desktop or browser apps

Page 14: Getting Started with Flex and PHP

Other Flex Developer Tools

Visual Studio Plugin

IntelliJTextMate Bundles

Page 15: Getting Started with Flex and PHP

In-Browser Applications Desktop/Mobile Apps

Flex FrameworkComponents, Data Connection APIs, Compiler, Debugger, Validators, Effects

PHP Code Exposed as Services that connects calls data from external data sources

XML / JSON / AMF / HTTP(S) / SOAP / Socket / RTMP

Compile to SWF Package

How Flex and PHP Work Together

Page 16: Getting Started with Flex and PHP

<XML>

Data Formats with Flex/PHP

{JSON}

010000010100110101000110(AMF)

Page 17: Getting Started with Flex and PHP

Your first Flex App

Page 18: Getting Started with Flex and PHP

Easily Connectto Data

Page 19: Getting Started with Flex and PHP

Create PHP classes based on a database

Easily connect to any exposed services

Test operations and define typesGenerate forms based on data typesBind data to interface components

Flash Builder Data Wizards

Page 20: Getting Started with Flex and PHP

AMF and the Zend Framework

Page 21: Getting Started with Flex and PHP

Intro to AMF

A binary file format that represents a serialized

ActionScript object

Created as a way to exchange data with the Flash Player

Allows you to map data types to Flash Player types

Open Specification

Page 22: Getting Started with Flex and PHP

AMF and PHP Projects

AMFPHP - Great, open source, easy to use, still the standard

ZendAMF - Part of the Zend Framework, most up to date

WebORB PHP - Part of WebORB family, comes with code generation tools

SaberAMF - Lightweight AMF implementation, similar to AMFPHP

Page 23: Getting Started with Flex and PHP

http://www.jamesward.com/census/

Page 24: Getting Started with Flex and PHP

What About Design?

Page 25: Getting Started with Flex and PHP

Designing Flex

The ability to tweak styles with CSSChange themes that affect every component

Work with a designer to skin components

Page 26: Getting Started with Flex and PHP

Designer/DeveloperWorkflowFlex’s component model

separates design from logic

Allows developers to take and easily integrate

designer content

Flash Catalyst is the UI designer for Flex

applications

Page 27: Getting Started with Flex and PHP

Leveraging the Designer in Flex

Page 28: Getting Started with Flex and PHP

Taking Flex and PHP Further

Page 29: Getting Started with Flex and PHP

Real-Time Data Over Sockets

Page 30: Getting Started with Flex and PHP

Client Server

Request

Response

Who Am I, What Am I, Where Am I Going?

Who Am I, What Am I, Where Am I Going?

Typical HTTP Call

Repeat

Page 31: Getting Started with Flex and PHP

Client Server

Connection

Push

Socket Call

Page 32: Getting Started with Flex and PHP

PHP Can Act as Socket ServerFlex can Connect via Socket Class

Provides the capability to roll your own real-time data access

Page 33: Getting Started with Flex and PHP

Using PHP to Manage Collaboration

Page 34: Getting Started with Flex and PHP

LiveCycle Collaboration ServicesCloud-based service for collaboration

Uses Flash to enable real-time data transferIncludes a PHP library for managing service

Page 35: Getting Started with Flex and PHP

Management, authentication

PHP and Collaboration

Page 36: Getting Started with Flex and PHP

Flashndroid

Page 37: Getting Started with Flex and PHP

@ryanstewart

blog.digitalbackcountry.com

[email protected]

github.com/ryanstewart

500100 4400259

13 T

Questions