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

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...Paris Open Source Summit
 
Module 1 presentation
Module 1  presentationModule 1  presentation
Module 1 presentationwfp-hrpl
 
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 Marcel Media
 
Presentatie Cegeka Zorg ECD Themadag
Presentatie Cegeka Zorg ECD ThemadagPresentatie Cegeka Zorg ECD Themadag
Presentatie Cegeka Zorg ECD ThemadagCegeka Nederland
 
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 MoMASteve Kemple
 
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-tragosGenaro Gonzalez
 

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

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 LABStefano Virgilli
 
Silicon Valley Android Apps Brochure
Silicon Valley Android Apps BrochureSilicon Valley Android Apps Brochure
Silicon Valley Android Apps BrochureStefano Virgilli
 
Prototyping mobile apps_with_adobe
Prototyping mobile apps_with_adobePrototyping mobile apps_with_adobe
Prototyping mobile apps_with_adobeStefano Virgilli
 
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] FrameworksStefano Virgilli
 
All about colour - by Stefano Virgilli
All about colour - by Stefano VirgilliAll about colour - by Stefano Virgilli
All about colour - by Stefano VirgilliStefano Virgilli
 
Blending modes presentation
Blending modes presentationBlending modes presentation
Blending modes presentationStefano Virgilli
 
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/10Stefano Virgilli
 
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/10Stefano Virgilli
 
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/10Stefano Virgilli
 
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/10Stefano Virgilli
 
Think again - Demystify graphic design
Think again - Demystify graphic designThink again - Demystify graphic design
Think again - Demystify graphic designStefano 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

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 

Recently uploaded (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

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/