Mate Presentation given to NY Flex User's Group

2,021 views

Published on

Mate Presentation given to NY Flex User's Group on October 22nd, 2009. Covers EventMap, EventHandlers, Injectors, and YQL for Twitter integration.

I didn't make the diagrams. They were created by another blogger (whom I can't seem to find at this moment). They were used without permission, so if you are the rightful owner and would like me to add attribution or remove the diagrams, let me know.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,021
On SlideShare
0
From Embeds
0
Number of Embeds
168
Actions
Shares
0
Downloads
37
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Mate Presentation given to NY Flex User's Group

  1. 1. Getting Friendly with Mate Alex Petrescu Sr. Presentation Layer Developer Razorfish
  2. 2. Flex Frameworks Cairngorm PureMVC Mate Swiz Cairngorm PureMVC Mate Swiz
  3. 3. Cairngorm Very defined MVC Structure Very mature Complex A lot of classes Tight coupling between MVC
  4. 4. PureMVC Very defined MVC Structure Mature Plays nice with Java Doesn’t take advantage of Flex
  5. 5. Mate Rapid Development Lose coupling Uses Native Flex Events Inversion of Control (IoC) pattern Easy to retrofit existing code
  6. 6. Swiz Rapid Development Lose coupling Uses Native Flex Events Inversion of Control (IoC) pattern No imposed structure
  7. 7. Mate Basics Get started quickly.
  8. 8. The View Normal MXML view. Public properties for data injection. Public methods for callbacks / listener injection. No references to manager / Mate necessary. Re-use of existing views possible. Use data binding / setters to make
  9. 9. View & Model
  10. 10. The Event / Bubbles Normal Flex / AS3 event. Bubbles = True Event bubbles up to stage. Can use GlobalDispatcher class to dispatch events from non-views. Re-use of existing events possible.
  11. 11. The EventMap The Core / Controller of the application. <EventMap> tag Event Handlers Injectors
  12. 12. Controller / Event Map
  13. 13. Mate Specific Tags - EventMap <EventHandlers type=”{YourEvent.TYPE}”> <Injectors type=”{TargetView}”>
  14. 14. Mate Specific Tags - EventHandlers <MethodInvoker generator=”{YourObject}” method=”functionName” arguments=”[arg1,arg2]”> <EventAnnouncer generator=”{YourEvent}” type=”{YourEvent.TYPE}”>
  15. 15. Mate Specific Tags - EventHandlers <RemoteObjectInvoker destination=”YourDestination” source=”path.to.this.service” method=”functionName” arguments=”[arg1,arg2]”>
  16. 16. Mate Specific Tags - EventHandlers <HttpServiceInvoker url=”http://path.to/yourservice”> <Request prop1=”{event.prop1}” prop2=”{event.prop2}”/> </HttpServiceInvoker>
  17. 17. Mate Specific Tags - EventHandlers <Callback method=”functionName” targetId=”myID” (optional) arguments=”[arg1,arg2]”>
  18. 18. Mate Specific Tags - Injectors <PropertyInjector targetKey=”myProperty” source=”{MyManager}” sourceKey=”myPropertyOnManager”>
  19. 19. Mate Specific Tags - Injectors <ListenerInjector eventType=”{MyEvent.TYPE}” method=”myMethod”>
  20. 20. Hello Mate! Quick demo.
  21. 21. Thank You http://www.kilometer0.com/mate/ for presentation / code.

×