a look at flex and php

32
A Look at Flex and PHP Central Florida PHP 1

Upload: michael-girouard

Post on 17-Jan-2015

2.037 views

Category:

Technology


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: A Look At Flex And Php

A Look at Flex and PHPCentral Florida PHP

1

Page 2: A Look At Flex And Php

A Look at Flex and PHP

• Background Information

• Flex: “Flash for Developers”

• MXML

• Building an Application

2

Page 3: A Look At Flex And Php

Background Information

3

Page 4: A Look At Flex And Php

1985Bill Atkinson builds HyperCard

4

Page 5: A Look At Flex And Php

1991Tim Berners-Lee Proposes HTML

5

Page 6: A Look At Flex And Php

1993Mosaic surfaces. Changes the world.

6

Page 7: A Look At Flex And Php

1994HTML 2, Netscape, W3

7

Page 8: A Look At Flex And Php

1995HTML 3, Tables, IE, Frames, Standards

8

Page 9: A Look At Flex And Php

1996Scripting Introduced

9

Page 10: A Look At Flex And Php

1997XML Introduced

10

Page 11: A Look At Flex And Php

TodayFlash + XML = Flex

11

Page 12: A Look At Flex And Php

Flex: “Flash for Developers”

12

Page 13: A Look At Flex And Php

AuthoringEnvironment

13

Page 14: A Look At Flex And Php

$$14

Page 15: A Look At Flex And Php

Closed Source

15

Page 16: A Look At Flex And Php

MXML

16

Page 17: A Look At Flex And Php

MXML vs. XHTML

• MXML is to Flex as XHTML is to WWW

• XHTML is interpreted

• MXML is Compiled (into SWF)

17

Page 18: A Look At Flex And Php

MXML vs. XHTML

• In MXML and XHTML you can

• Define structure of data and layout

• Define behavior or logic

• Define presentation of information

18

Page 19: A Look At Flex And Php

MXML is XML<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"

backgroundColor="#FFFFFF">

<mx:WebService id="srv"wsdl="http://coenraets.org/services/ProductWS?wsdl"showBusyCursor="true"/>

<mx:DataGrid dataProvider="{srv.getProducts.lastResult}" width="100%" height="100%">

<mx:columns><mx:DataGridColumn dataField="productId" headerText="Product Id"><mx:DataGridColumn dataField="name" headerText="Name"/><mx:DataGridColumn dataField="price" headerText="Price"/>

</mx:columns>

</mx:DataGrid><mx:Button label="Get Data" click="srv.getProducts()"/>

</mx:Application>

19

Page 23: A Look At Flex And Php

Building an Application

23

Page 24: A Look At Flex And Php

Step-by-Step

1. Download Flex

2. Install the Framework

3. Write the Code

4. Compile

5. Execute

24

Page 25: A Look At Flex And Php

Downloading Flex

• http://www.flex.org/download/

• You need the “free Flex SDK”

• FlexBuilder is cool too

25

Page 26: A Look At Flex And Php

Installing Flex

• Unpack the SDK to a permanent location

• Install the Debug Player

• Add the compiler to your PATH

• Windows: bin/mxmlc.exe

• Mac: bin/mxmlc

26

Page 27: A Look At Flex And Php

Write the Code

<?xml version="1.0" ?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" verticalAlign="center" > <mx:Panel title="{textInput.text}"> <mx:TextInput id="textInput" width="250" text="Data Binding"/> </mx:Panel> </mx:Application>

Binding.mxml

27

Page 28: A Look At Flex And Php

Compile

• mxmlc path/to/Binding.mxml

28

Page 30: A Look At Flex And Php

Useful Links

• Flex.org

• http://flex.org/

• Flex Documentation

• http://www.adobe.com/support/documentation/en/flex/

30

Page 31: A Look At Flex And Php

Useful Links

• Flex Quickstart Tutorials

• http://www.adobe.com/devnet/flex/?tab:quickstart=1

• Try Flex Online

• http://try.flex.org/

• Flex Labs

• http://labs.adobe.com/technologies/flex/

31

Page 32: A Look At Flex And Php

Useful Links

• Adobe Developers of Greater Orlando

• http://adogo.us/

• RIAPedia

• http://www.riapedia.com/

• Flex Team Blog

• http://weblogs.macromedia.com/flexteam/

32