SlideShare a Scribd company logo
1 of 7
Download to read offline
Building Flash-based websites using Flex

Lesson 6 – Remote Server Communication




                 Alex Goh
                 info@alekkus.com
Agenda

●   Remote data communication

●   Real-time communication

●   Asynchronous communication

●   HTTP Get/Post

●   Flash remoting
Remote Data Communication

●   Flex offers many ways to communicate data to and from a remote server.

● The first step is to determine whether a real-time (synchronous)
communication or a “request-response” (asynchronous) communication is
needed.
Real-time Communication

●   Real-time communication is harder to implement.

● Need to use sockets to establish permanent connection. Many companies
block socket connection as part of their system security measures.

● In Flex, real-time communication requires Adobe's Real Time Messaging
Protocol (RTMP).

● To use RTMP, requires Adobe's LiveCycle ES (requires licensing) or BlazeDS
(open source), both implemented on the J2EE platform.

●Used mostly in video conferencing app, or instant messaging. e.g. Yahoo
Web Messenger was done in Flex
Asynchronous Communication

●   Make use of the HTTP/HTTPS protocol

●Connection to a remote server is achieved either thru the REST or SOAP
method.

●   REST method:

    ●   HTTP Get/Post – HTTPService class
    ●   Flash remoting – RemoteObject class

●   SOAP method:

    ●   Web service – WebService class
HTTP Get/Post

●   Use the HTTPService class.

●   Simplest.

●   Most web APIs use the HTTP Get/Post method
Flash Remoting

●   More secured.

● Convenient the Flex application can simply call a function on the server side,
known as Remote Procedure Call (RPC) or Remote Method Invocation (RMI).

● Adobe came out with a format to support binary data transfer to be used in
conjunction with Flash Remoting, called the Action Message Format (AMF).

● Both LiveCycle ES and BlazeDS support AMF, but that means the server
needs to run J2EE.

● For other types of application server (ASP, PHP, Ruby...etc), need to use third
party software.

    ●   WebOrb (free, pay for support) - http://www.themidnightcoders.com/

More Related Content

Viewers also liked (10)

OWF12/PAUG Conf Days Google tv part2 (commande and control) matt gaunt, a...
OWF12/PAUG Conf Days Google tv part2 (commande and control)     matt gaunt, a...OWF12/PAUG Conf Days Google tv part2 (commande and control)     matt gaunt, a...
OWF12/PAUG Conf Days Google tv part2 (commande and control) matt gaunt, a...
 
Module 1 presentation
Module 1  presentationModule 1  presentation
Module 1 presentation
 
Move Over Email There's a New Game in Town
Move Over Email There's a New Game in Town Move Over Email There's a New Game in Town
Move Over Email There's a New Game in Town
 
It's me!
It's me!It's me!
It's me!
 
Aom9 25 09
Aom9 25 09Aom9 25 09
Aom9 25 09
 
Typescript
TypescriptTypescript
Typescript
 
04 Kids Katalog
04 Kids Katalog04 Kids Katalog
04 Kids Katalog
 
Presentatie Cegeka Zorg ECD Themadag
Presentatie Cegeka Zorg ECD ThemadagPresentatie Cegeka Zorg ECD Themadag
Presentatie Cegeka Zorg ECD Themadag
 
Trying To Find Drawing-Sculptures at MoMA
Trying To Find Drawing-Sculptures at MoMATrying To Find Drawing-Sculptures at MoMA
Trying To Find Drawing-Sculptures at MoMA
 
Las 3-razones-de-por-qué-elegir-tragos
Las 3-razones-de-por-qué-elegir-tragosLas 3-razones-de-por-qué-elegir-tragos
Las 3-razones-de-por-qué-elegir-tragos
 

More from Stefano Virgilli

Silicon Valley Android Apps Brochure
Silicon Valley Android Apps BrochureSilicon Valley Android Apps Brochure
Silicon Valley Android Apps Brochure
Stefano Virgilli
 
Prototyping mobile apps_with_adobe
Prototyping mobile apps_with_adobePrototyping mobile apps_with_adobe
Prototyping mobile apps_with_adobe
Stefano Virgilli
 

More from Stefano Virgilli (15)

Is it photoshopped?
Is it photoshopped?Is it photoshopped?
Is it photoshopped?
 
Shooting in a digital era
Shooting in a digital eraShooting in a digital era
Shooting in a digital era
 
Prototyping Mobile Application with Adobe FireWorks - By Linus Lim for VOX LAB
Prototyping Mobile Application with Adobe FireWorks - By Linus Lim for VOX LABPrototyping Mobile Application with Adobe FireWorks - By Linus Lim for VOX LAB
Prototyping Mobile Application with Adobe FireWorks - By Linus Lim for VOX LAB
 
Silicon Valley Android Apps Brochure
Silicon Valley Android Apps BrochureSilicon Valley Android Apps Brochure
Silicon Valley Android Apps Brochure
 
Prototyping mobile apps_with_adobe
Prototyping mobile apps_with_adobePrototyping mobile apps_with_adobe
Prototyping mobile apps_with_adobe
 
Cinematography c ot-102
Cinematography c ot-102Cinematography c ot-102
Cinematography c ot-102
 
Designer vs Client
Designer vs ClientDesigner vs Client
Designer vs Client
 
Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103] Frameworks
Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103] FrameworksAdobe Flex - Foundation to Advanced (Bundle) [A-FX-103] Frameworks
Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103] Frameworks
 
All about colour - by Stefano Virgilli
All about colour - by Stefano VirgilliAll about colour - by Stefano Virgilli
All about colour - by Stefano Virgilli
 
Blending modes presentation
Blending modes presentationBlending modes presentation
Blending modes presentation
 
Building Flash-based websites using Adobe Flex - Lesson 10/10
Building Flash-based websites using Adobe Flex - Lesson 10/10Building Flash-based websites using Adobe Flex - Lesson 10/10
Building Flash-based websites using Adobe Flex - Lesson 10/10
 
Building Flash-based websites using Adobe Flex - Lesson 4/10
Building Flash-based websites using Adobe Flex - Lesson 4/10Building Flash-based websites using Adobe Flex - Lesson 4/10
Building Flash-based websites using Adobe Flex - Lesson 4/10
 
Building Flash-based websites using Adobe Flex - Lesson 3/10
Building Flash-based websites using Adobe Flex - Lesson 3/10Building Flash-based websites using Adobe Flex - Lesson 3/10
Building Flash-based websites using Adobe Flex - Lesson 3/10
 
Building Flash-based websites using Adobe Flex - Lesson 1/10
Building Flash-based websites using Adobe Flex - Lesson 1/10Building Flash-based websites using Adobe Flex - Lesson 1/10
Building Flash-based websites using Adobe Flex - Lesson 1/10
 
Think again - Demystify graphic design
Think again - Demystify graphic designThink again - Demystify graphic design
Think again - Demystify graphic design
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 

Building Flash-based websites using Adobe Flex - Lesson 6/10

  • 1. Building Flash-based websites using Flex Lesson 6 – Remote Server Communication Alex Goh info@alekkus.com
  • 2. Agenda ● Remote data communication ● Real-time communication ● Asynchronous communication ● HTTP Get/Post ● Flash remoting
  • 3. Remote Data Communication ● Flex offers many ways to communicate data to and from a remote server. ● The first step is to determine whether a real-time (synchronous) communication or a “request-response” (asynchronous) communication is needed.
  • 4. Real-time Communication ● Real-time communication is harder to implement. ● Need to use sockets to establish permanent connection. Many companies block socket connection as part of their system security measures. ● In Flex, real-time communication requires Adobe's Real Time Messaging Protocol (RTMP). ● To use RTMP, requires Adobe's LiveCycle ES (requires licensing) or BlazeDS (open source), both implemented on the J2EE platform. ●Used mostly in video conferencing app, or instant messaging. e.g. Yahoo Web Messenger was done in Flex
  • 5. Asynchronous Communication ● Make use of the HTTP/HTTPS protocol ●Connection to a remote server is achieved either thru the REST or SOAP method. ● REST method: ● HTTP Get/Post – HTTPService class ● Flash remoting – RemoteObject class ● SOAP method: ● Web service – WebService class
  • 6. HTTP Get/Post ● Use the HTTPService class. ● Simplest. ● Most web APIs use the HTTP Get/Post method
  • 7. Flash Remoting ● More secured. ● Convenient the Flex application can simply call a function on the server side, known as Remote Procedure Call (RPC) or Remote Method Invocation (RMI). ● Adobe came out with a format to support binary data transfer to be used in conjunction with Flash Remoting, called the Action Message Format (AMF). ● Both LiveCycle ES and BlazeDS support AMF, but that means the server needs to run J2EE. ● For other types of application server (ASP, PHP, Ruby...etc), need to use third party software. ● WebOrb (free, pay for support) - http://www.themidnightcoders.com/