SlideShare a Scribd company logo
MVC Pattern Flex implementation of MVC Anton Krasnoshchok
Please  t urn  o ff  your   c ell  p hones   or set them to vibrate Thank  y ou  f or  y our  c ooperation
UI, business logic and data Business applications consist of user interface (UI), business logic, and data models.  When UI, business logic and data are collapsed into one object in rich users interface, it can lead to some of the following problems: Difficult to use the data outside that object Hard to change the UI, when UI  and data are locked in the same object. Hard to use multiple views of the same data. Difficult to synchronize multiple view of the same data.
MVC pattern Model  -  View - Controller (MVC) is an architectural pattern used in software engineering. The MVC pattern is most commonly used to create interfaces for software applications, and, as the name implies, consists of three elements: Model: contains the application data and logic to manage the state of the application. View: present the user interface. Controller: Handles user inputs to change the state on the application.
Comparison  3 -Tier with MVC 3 -Tier architecture MVC architecture PL BL DAL Model View Controller View tells to controller handle user inputs Controller  changes model state Model tells view to update itself View reads state information from model  and updates itself.
Cairngorm Framework
Cairngorm elements Model Locator : Stores all of your application’s Value Objects (data) and shared variables, in one place View : One or more Flex components (button, panel, combo box, Tile, etc) bundled together as a named unit, bound to data in the Model Locator, and generating custom Cairngorm Events based on user interaction (clicks, rollovers, drag-n-drop etc.) Front Controller : Receives Cairngorm Events and maps them to Cairngorm Commands. Command : Handles business logic, calls Cairngorm Delegates and/or other Commands, and updates the Value Objects and variables stored in the Model Locator Delegate : Created by a Command, they instantiate remote procedure calls (HTTP, Web Services, etc) and hand the results back to that Command. Service : Defines the remote procedure calls (HTTP, Web Services, etc) to connect to remote data stores.
 
Mate Framework Mate framework it is a tag-based, event-driven Flex framework. Benefits Highly decoupled Your classes do not extend from Mate Business logic is independent of framework  Can be tested & reused Business logic decoupled from events Business logic decoupled from services Events are normal Flash events  Can be reused
Basic steps Typically, the basic steps to create a Mate project are: 1. Add the compiled framework code to your project (Mate.swc). 2. Create a file that will be the EventMap . 3. Include the event map in your main Application file. 4. Create a custom event. 5. Somewhere, dispatch that event. 6. Add EventHandlers in your event map that listen for the event type you dispatched. 7. Execute some actions inside the EventHandlers block (ie: call the server, store data, etc). 8. Repeat 4-7 for every event you need.
 
Summary The MVC pattern provides a clear framework for design. The separation of responsibilities among the model, view and controller elements allows easy substitution of elements without disruptions to the overall application. This lets us easily expand applications based on the MVC pattern to meet changing requirements.
Last page Any questions ?

More Related Content

What's hot (20)

PPTX
Jsp with mvc
vamsitricks
 
PPT
Mvc architecture
Surbhi Panhalkar
 
ODP
What is MVC?
Dom Cimafranca
 
PDF
Model View Controller (MVC)
Javier Antonio Humarán Peñuñuri
 
PPT
MVC(Model View Controller),Web,Enterprise,Mobile
naral
 
PPTX
Introduction to ASP.NET MVC
Emad Alashi
 
PPTX
Introduction to mvc architecture
ravindraquicsolv
 
PPTX
Mvc framework
Dhurham Fahem
 
PPT
MSDN - ASP.NET MVC
Maarten Balliauw
 
PPSX
Asp.net mvc
Er. Kamal Bhusal
 
PPT
Asp.net mvc
Naga Harish M
 
PPTX
MVC architecture by Mohd.Awais on 18th Aug, 2017
Innovation Studio
 
PPTX
Asp.net MVC training session
Hrichi Mohamed
 
PPTX
ASP.NET MVC Presentation
Volkan Uzun
 
PPT
MVC
akshin
 
PPTX
Mortal Kombat! ASP.NET MVC vs ASP.NET Webforms – ASP.NET MVC is amazing
Tom Walker
 
PDF
Just a View: An Introduction To Model-View-Controller Pattern
Aaron Nordyke
 
PDF
MVC Seminar Presantation
Abhishek Yadav
 
PPTX
Asp.net mvc presentation by Nitin Sawant
Nitin S
 
PPTX
Software architectural design patterns(MVC, MVP, MVVM, VIPER) for iOS
Jinkyu Kim
 
Jsp with mvc
vamsitricks
 
Mvc architecture
Surbhi Panhalkar
 
What is MVC?
Dom Cimafranca
 
Model View Controller (MVC)
Javier Antonio Humarán Peñuñuri
 
MVC(Model View Controller),Web,Enterprise,Mobile
naral
 
Introduction to ASP.NET MVC
Emad Alashi
 
Introduction to mvc architecture
ravindraquicsolv
 
Mvc framework
Dhurham Fahem
 
MSDN - ASP.NET MVC
Maarten Balliauw
 
Asp.net mvc
Er. Kamal Bhusal
 
Asp.net mvc
Naga Harish M
 
MVC architecture by Mohd.Awais on 18th Aug, 2017
Innovation Studio
 
Asp.net MVC training session
Hrichi Mohamed
 
ASP.NET MVC Presentation
Volkan Uzun
 
MVC
akshin
 
Mortal Kombat! ASP.NET MVC vs ASP.NET Webforms – ASP.NET MVC is amazing
Tom Walker
 
Just a View: An Introduction To Model-View-Controller Pattern
Aaron Nordyke
 
MVC Seminar Presantation
Abhishek Yadav
 
Asp.net mvc presentation by Nitin Sawant
Nitin S
 
Software architectural design patterns(MVC, MVP, MVVM, VIPER) for iOS
Jinkyu Kim
 

Viewers also liked (19)

PPTX
Spring MVC Architecture Tutorial
Java Success Point
 
PPTX
Spring Web MVC
zeeshanhanif
 
PPT
Spring MVC Basics
Bozhidar Bozhanov
 
PPT
Spring MVC 3.0 Framework
Ravi Kant Soni ([email protected])
 
ODP
Spring Portlet MVC
John Lewis
 
PDF
Spring mvc my Faviourite Slide
Daniel Adenew
 
DOCX
02 java spring-hibernate-experience-questions
Dhiraj Champawat
 
PDF
Spring Web Service, Spring JMS, Eclipse & Maven tutorials
Raghavan Mohan
 
PDF
Spring 3 Annotated Development
kensipe
 
PPTX
Spring @Transactional Explained
Smita Prasad
 
PDF
What's new in Spring 3?
Craig Walls
 
PDF
Spring annotation
Rajiv Srivastava
 
PDF
Spring 4 on Java 8 by Juergen Hoeller
ZeroTurnaround
 
PDF
Introduction to Spring MVC
Richard Paul
 
PPTX
SpringFramework Overview
zerovirus23
 
PPTX
Spring 3.x - Spring MVC - Advanced topics
Guy Nir
 
ODP
Spring Mvc,Java, Spring
ifnu bima
 
PPTX
Modele mvc
Soulef riahi
 
PDF
Managing user's data with Spring Session
David Gómez García
 
Spring MVC Architecture Tutorial
Java Success Point
 
Spring Web MVC
zeeshanhanif
 
Spring MVC Basics
Bozhidar Bozhanov
 
Spring MVC 3.0 Framework
Ravi Kant Soni ([email protected])
 
Spring Portlet MVC
John Lewis
 
Spring mvc my Faviourite Slide
Daniel Adenew
 
02 java spring-hibernate-experience-questions
Dhiraj Champawat
 
Spring Web Service, Spring JMS, Eclipse & Maven tutorials
Raghavan Mohan
 
Spring 3 Annotated Development
kensipe
 
Spring @Transactional Explained
Smita Prasad
 
What's new in Spring 3?
Craig Walls
 
Spring annotation
Rajiv Srivastava
 
Spring 4 on Java 8 by Juergen Hoeller
ZeroTurnaround
 
Introduction to Spring MVC
Richard Paul
 
SpringFramework Overview
zerovirus23
 
Spring 3.x - Spring MVC - Advanced topics
Guy Nir
 
Spring Mvc,Java, Spring
ifnu bima
 
Modele mvc
Soulef riahi
 
Managing user's data with Spring Session
David Gómez García
 
Ad

Similar to MVC Pattern. Flex implementation of MVC (20)

PDF
IRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET Journal
 
PDF
MVC
Ravi Bansal
 
PDF
MVC in PHP
Vineet Kumar Saini
 
PDF
Introduction to MVC in Flex and HydraMVC
cltru
 
PPTX
Training: MVVM Pattern
Betclic Everest Group Tech Team
 
PDF
MVC Design Pattern in JavaScript by ADMEC Multimedia Institute
Ravi Bhadauria
 
PPTX
Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103] Frameworks
Stefano Virgilli
 
PDF
Model View Madness
Mike Wilcox
 
PDF
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
CrimsonpublishersPRSP
 
PPTX
MVC 6 Introduction
Sudhakar Sharma
 
PPSX
Software Design Patterns
alkuzaee
 
PDF
How I Accidentally Discovered MVVM
Bradford Dillon
 
PPT
Ppt of Basic MVC Structure
Dipika Wadhvani
 
PDF
Mvc Architecture in a web based application
OnGraph Technologies Pvt. Ltd.
 
PDF
Web App Architectures and Design Patterns
Rui Sousa
 
PDF
mvcExpress training course : part1
Raimundas Banevičius
 
PDF
Applying Domain Driven Design on Asp.net MVC – Part 1: Asp.net MVC
Mohamed Meligy
 
PPTX
MVVM ( Model View ViewModel )
Ahmed Emad
 
DOCX
IntroductionToMVC
Akhil Mittal
 
PDF
Choosing the Right HTML5 Framework to Build your Mobile Web Application White...
RapidValue
 
IRJET- MVC Framework: A Modern Web Application Development Approach and Working
IRJET Journal
 
MVC in PHP
Vineet Kumar Saini
 
Introduction to MVC in Flex and HydraMVC
cltru
 
Training: MVVM Pattern
Betclic Everest Group Tech Team
 
MVC Design Pattern in JavaScript by ADMEC Multimedia Institute
Ravi Bhadauria
 
Adobe Flex - Foundation to Advanced (Bundle) [A-FX-103] Frameworks
Stefano Virgilli
 
Model View Madness
Mike Wilcox
 
MVC Architecture: A Detailed Insight to the Modern Web Applications Developme...
CrimsonpublishersPRSP
 
MVC 6 Introduction
Sudhakar Sharma
 
Software Design Patterns
alkuzaee
 
How I Accidentally Discovered MVVM
Bradford Dillon
 
Ppt of Basic MVC Structure
Dipika Wadhvani
 
Mvc Architecture in a web based application
OnGraph Technologies Pvt. Ltd.
 
Web App Architectures and Design Patterns
Rui Sousa
 
mvcExpress training course : part1
Raimundas Banevičius
 
Applying Domain Driven Design on Asp.net MVC – Part 1: Asp.net MVC
Mohamed Meligy
 
MVVM ( Model View ViewModel )
Ahmed Emad
 
IntroductionToMVC
Akhil Mittal
 
Choosing the Right HTML5 Framework to Build your Mobile Web Application White...
RapidValue
 
Ad

Recently uploaded (20)

PDF
How to Make Your Pre Seed Startup Grant Fundable
ideatoipo
 
PDF
Camil Institutional Presentation_Jun25.pdf
CAMILRI
 
PDF
From Legacy to Velocity: how we rebuilt everything in 8 months.
Product-Tech Team
 
PDF
Fire Sprinklers Market Trends & Growth 2034
Preeti Jha
 
PDF
Buy Boys Long Sleeve T-shirts at Port 213
Port 213
 
PDF
Buy Verified Payoneer Account – 100% Best With All Documents.pdf
buypaypalaccountsee buypaypalaccounts
 
PPTX
Master and Business Administration II Next MBA
RobertoOrellana44
 
PPTX
IP Leaks Can Derail Years Of Innovation In Seconds
Home
 
PDF
Top Farewell Gifts for Seniors Under.pdf
ThreadVibe Living
 
PDF
Leadership Advisory & Branding powered by MECE, SCQA & 3P framework.pdf
Vipin Srivastava
 
PPTX
epi editorial commitee meeting presentation
MIPLM
 
PDF
15 Essential Cloud Podcasts Every Tech Professional Should Know in 2025
Amnic
 
PDF
Explore Unique Wash Basin Designs: Black, Standing & Colored Options
Mozio
 
PPTX
Drive Operational Excellence with Proven Continuous Improvement Strategies
Group50 Consulting
 
PDF
Rostyslav Chayka: Управління командою за допомогою AI (UA)
Lviv Startup Club
 
PDF
Securiport - A Global Leader
Securiport
 
PDF
Raman Bhaumik - A Passion For Service
Raman Bhaumik
 
PDF
Patrick Dwyer Merrill Lynch - A Governing Board Director
Patrick Dwyer Merrill Lynch
 
PPTX
How Essar Transforms the Planet while Investing in People Over Profit
essarcase
 
PPTX
2025 July - ABM for B2B in Hubspot - Demand Gen HUG.pptx
mjenkins13
 
How to Make Your Pre Seed Startup Grant Fundable
ideatoipo
 
Camil Institutional Presentation_Jun25.pdf
CAMILRI
 
From Legacy to Velocity: how we rebuilt everything in 8 months.
Product-Tech Team
 
Fire Sprinklers Market Trends & Growth 2034
Preeti Jha
 
Buy Boys Long Sleeve T-shirts at Port 213
Port 213
 
Buy Verified Payoneer Account – 100% Best With All Documents.pdf
buypaypalaccountsee buypaypalaccounts
 
Master and Business Administration II Next MBA
RobertoOrellana44
 
IP Leaks Can Derail Years Of Innovation In Seconds
Home
 
Top Farewell Gifts for Seniors Under.pdf
ThreadVibe Living
 
Leadership Advisory & Branding powered by MECE, SCQA & 3P framework.pdf
Vipin Srivastava
 
epi editorial commitee meeting presentation
MIPLM
 
15 Essential Cloud Podcasts Every Tech Professional Should Know in 2025
Amnic
 
Explore Unique Wash Basin Designs: Black, Standing & Colored Options
Mozio
 
Drive Operational Excellence with Proven Continuous Improvement Strategies
Group50 Consulting
 
Rostyslav Chayka: Управління командою за допомогою AI (UA)
Lviv Startup Club
 
Securiport - A Global Leader
Securiport
 
Raman Bhaumik - A Passion For Service
Raman Bhaumik
 
Patrick Dwyer Merrill Lynch - A Governing Board Director
Patrick Dwyer Merrill Lynch
 
How Essar Transforms the Planet while Investing in People Over Profit
essarcase
 
2025 July - ABM for B2B in Hubspot - Demand Gen HUG.pptx
mjenkins13
 

MVC Pattern. Flex implementation of MVC

  • 1. MVC Pattern Flex implementation of MVC Anton Krasnoshchok
  • 2. Please t urn o ff your c ell p hones or set them to vibrate Thank y ou f or y our c ooperation
  • 3. UI, business logic and data Business applications consist of user interface (UI), business logic, and data models. When UI, business logic and data are collapsed into one object in rich users interface, it can lead to some of the following problems: Difficult to use the data outside that object Hard to change the UI, when UI and data are locked in the same object. Hard to use multiple views of the same data. Difficult to synchronize multiple view of the same data.
  • 4. MVC pattern Model - View - Controller (MVC) is an architectural pattern used in software engineering. The MVC pattern is most commonly used to create interfaces for software applications, and, as the name implies, consists of three elements: Model: contains the application data and logic to manage the state of the application. View: present the user interface. Controller: Handles user inputs to change the state on the application.
  • 5. Comparison 3 -Tier with MVC 3 -Tier architecture MVC architecture PL BL DAL Model View Controller View tells to controller handle user inputs Controller changes model state Model tells view to update itself View reads state information from model and updates itself.
  • 7. Cairngorm elements Model Locator : Stores all of your application’s Value Objects (data) and shared variables, in one place View : One or more Flex components (button, panel, combo box, Tile, etc) bundled together as a named unit, bound to data in the Model Locator, and generating custom Cairngorm Events based on user interaction (clicks, rollovers, drag-n-drop etc.) Front Controller : Receives Cairngorm Events and maps them to Cairngorm Commands. Command : Handles business logic, calls Cairngorm Delegates and/or other Commands, and updates the Value Objects and variables stored in the Model Locator Delegate : Created by a Command, they instantiate remote procedure calls (HTTP, Web Services, etc) and hand the results back to that Command. Service : Defines the remote procedure calls (HTTP, Web Services, etc) to connect to remote data stores.
  • 8.  
  • 9. Mate Framework Mate framework it is a tag-based, event-driven Flex framework. Benefits Highly decoupled Your classes do not extend from Mate Business logic is independent of framework Can be tested & reused Business logic decoupled from events Business logic decoupled from services Events are normal Flash events Can be reused
  • 10. Basic steps Typically, the basic steps to create a Mate project are: 1. Add the compiled framework code to your project (Mate.swc). 2. Create a file that will be the EventMap . 3. Include the event map in your main Application file. 4. Create a custom event. 5. Somewhere, dispatch that event. 6. Add EventHandlers in your event map that listen for the event type you dispatched. 7. Execute some actions inside the EventHandlers block (ie: call the server, store data, etc). 8. Repeat 4-7 for every event you need.
  • 11.  
  • 12. Summary The MVC pattern provides a clear framework for design. The separation of responsibilities among the model, view and controller elements allows easy substitution of elements without disruptions to the overall application. This lets us easily expand applications based on the MVC pattern to meet changing requirements.
  • 13. Last page Any questions ?