Flash :: Silverlight - MVVM - Presentation Model In Flex Vs Presentation Model In Silverlight: Advantages And Disadvantages?

Apr 10, 2011

As it is said here: [URL] "If you do a Google search today for "MVVM and Flex", the first post is by somebody who claims that MVVM is not a good fit for Flex. I couldn't disagree more. Out of the box, the Flex framework makes it much easier to implement a Presentation Model than similar MVVM implementations in Silverlight. That is not to say that there aren't good third-party libraries that make it easier in Silverlight, but without any help, it is easier to do in Flex." So MVVM as LOGICAL CONCEPT can be implemented in both but the way it is implemented in Silverlight requires more Plumbing than Flex.

What prevents Silverlight MVVM to be implemented like Flex ? Doesn't Silverlight have same capability in event system to do the same? If yes why does Silverlight do things more complicated what's the advantages then ? Is it about using Class Interfaces which are more strongly typed? What are the disadvantages also ? For example as for implementing MULTIPLE VIEWS for 1 View-Model does Flex implementation make it also more obvious?

View 2 Replies


Similar Posts:


Flex :: DTO / VO Versus Presentation Model

May 5, 2011

In Flex world, is DTO / VO same as Presentation Model?

View 2 Replies

Flex :: Cairngorm 3 Presentation Model Initializations?

Jul 13, 2011

I have a TitleWindow that I open up... and I have 6 states defined.I am using the Presentation model pattern for all of my views. When I tell my window to go to XXX state, the controls have to initialize since the states in flex use lazy loading. so... my PM code that says myTextArea.text bombs out and say "cannot access..." so as a work around, I made some creationComplete events on my controls to register the control with the PM. So when the state changes, the textarea finally initializes and on creationComplete calls PM.registerTextArea() which sets a reference to it. then in that function I run my code... myTextArea.text.. etc.

This seems like such a ugly hack that I hate it. Is there any way to wait until the entire state in created then call code on the PM? I have tried enterstate... but this event seems to fire before the state controls are ready.I tried to add a comment, but I guess editing is the only way I can do this...I am doing something slightly off straight PM. Every view has a viewController (as I call them). Its kinda my own hybrid of a delegate / dataprovider. But this is moot. It's the flex component lifecycle when dealing with states that is the pain.if you change state.. there is no event to say "all my components in this state are ready".only event to say "we changed state". so my code that fires on state change is trying to talk to components that aren't ready yet.So from what I see, there seems to be no design pattern or perfect way to ensure that all components are created in a state unless using creationComplete on every component in the state to register it is ready... if you don't, you get a race condition. Regardless of frameworks or design patterns, this seems to be a root issue.

I am trying to attach video to a display once I get to that state. This is done via addchild. regardless of where I do it.. I need to know that the videoDisplay is done loading before I call addchild. I even tried currentStateChange event since docs say that fires last... but alas.. the components in the state are still initializing. So it seems that creationComplete is my only option. Maybe the only sane way to keep to clean code is to create the entire thing(videodisplay and video) using as once the state is entered. I just hoped the flex framework had events to ehlp me here rather than buiilding everything on the fly in as.

View 1 Replies

Actionscript 3 :: Adding Elements In Flex Using Presentation Model

Apr 11, 2011

I'm refactoring some Flex code written by another developer and I'm implementing a PresentationModel approach, as I like to separate out the ActionScript from the MXML. One of the problems I've found is that the original ActionScript code adds/removes elements from the MXML.What happens is the handler function checks the model and if the values are correct will either create or remove a element from the view. What is the best way to get the presentation model to ad elements to the view and still keep this loose coupling that I'm aiming for.I was thinking of using simple events which the presentation model dispatches and a view can list for passing the details of the element to add.

View 2 Replies

Flash :: IDE - Presentation To Work With Kensington - Model # 33374

Dec 2, 2009

i have a client that uses Kensington model # 33374 how can i program the flash presentation to work with it?

View 3 Replies

Silverlight :: Logic Not On The Presentation Tier

Jan 19, 2011

In a RIA application you are supposed to put as much business logic as possible outside of the RIA layers (flash/silverlight etc). What is the reason behind this? Any logic that goes into the presentation tier gets the benefit of executing faster...

Is this because the RIA technology will most likely need a face lift down the road and you will have to rewrite all the business logic?

View 3 Replies

MVVM With DataTemplateSelector Is Portable From Silverlight To Flex?

Apr 9, 2011

MVVM In MVVM there can be only one View for each one View Model ?

Answer would be to use DataTemplateSelector to get multiple views. Now let's say I need to port to flex. Does Flex have the same paradigm as DataTemplateSelector?

View 1 Replies

Flex :: Presentation Model Pattern Can View Specific Logic Reside In View?

Aug 15, 2011

I'm currently using RobotLegs with the Presentation Model pattern to develop a Flex 4 project. I understand that all business logic related to a View resides in the Presentation Model associated with that view, however, I am confused when it comes to View specific logic.For example, I have an indicator that needs to be positioned relatively to list items depending on which list item is selected. Is it acceptable in the Presentation pattern to put the logic that will position the indicator in the View and simply have that logic run in reaction to a selectedIndex property changing in the presentation model?The reason I am considering this is that since the Presentation Model does not have a reference to the view it is difficult to come up with an ideal solution for manipulating view components.

View 1 Replies

Silverlight :: Flash Vs Silverlight On Localhost /local File Permission To Access Remote Webservice?

Mar 30, 2011

In Flash user can give permission to localhost and even local html file to access remote webservice.I fail to see the same thing for Silverlight which is a nightmare for testing on local pc.

View 1 Replies

Silverlight :: Play Mp4 Within Webpage Via Silverlight Or Flash For A URL Hosted On Amazon S3?

Feb 7, 2011

i need a webpage (host on my website) that can play the following mp4 file either via silverlight 4 or flash[URL]..i tried various solution like flowplayer and silverlight but none of them work with the URL above. I can play the file fine using Windows media player or VLC.

For silverlight, i always get AG_E_NETWORK_ERROR exception within MediaFailed event. For flash, via flowplayer, IE page is just blank

Can someone tell me what am i missing? i am very frustrated as I have finished encoding, upload, cataloging my videos and now I am stuck at the last step.

View 1 Replies

Flash :: Silverlight - Resources For Cool Silverlight Image Animations?

Sep 5, 2011

I found Vectorlight which is quite good, but are there any tutorials or books about doing cool effects with silverlight. I'm after for resources focused more for a designing and presentation. Mostly the books about Silverlight is focused on doing boring business applications like making grids and forms.

View 1 Replies

Silverlight :: Comparing Flash, HTML, Silverlight, X3D And Unity 3d?

Mar 5, 2011

I have to prepare a comparison between the following technologies to present it to my Project Manager, but I fell that I'm lost I want to compare between them in the following areas:the support of online video streaming the budget of using each one Learning Time will be needed to learn the technology Which one is the standard and will target a lot of users The support if I found any problem Bugs and security issues connection to DB, SOA and web services supporting of multi player

View 7 Replies

Silverlight :: Does Windows Phone 7.3 OS Supports Flash And Silverlight

Dec 26, 2011

I am currently working on a windows phone project where i have test the compatibility and I do not know flash and Silverlight is supported or not on windows phone 7.3.

View 1 Replies

Silverlight :: Hire A Flash Or Silverlight Developer?

Feb 14, 2011

Is there a website where you can go to find developers?

View 1 Replies

Flash :: Flex - What Are The Advantages And Disadvantages Over The Bitmap And MovieClip

Apr 6, 2010

What are the Advantages and Disadvantages over the Bitmap and MovieClip in Flash.

View 1 Replies

Silverlight :: RIA Using Flash Or Silverlight Vs JS Framework

Sep 14, 2010

In creating a RIA, what are the advantages and disadvantages of each approach?

View 1 Replies

Silverlight :: Silverlight - 3D Object Viewer In Web Browsers?

Aug 3, 2011

I am looking for a 3D object viewer for my website.

Requirements:

Files: .stl,.wrl, *.3ds *.vrml, *.obj, *.ply, *.skp

display: models in color and non color

Unit of Measure: Meters, Centimeter, Millimeters, Inch

Volume: 3D object viewer has to calculate the orginal size of the model

Rotation&zoom: user can rotate/zoom with mouse and rotate/zoom by clicking buttons

Browser: IE& Firefox

View 1 Replies

Silverlight :: Silverlight - Loop A Mp3 In A Browser With Zero Gap?

Nov 2, 2010

I'm trying to make a guitar practice website, and a critical functionality is to loop over very short mp3 files (a few seconds long), with absolutely zero gap in between. For example, it could a 4-measures-long chord progression, and I want to allow the user to loop over it seamlessly.

I tried using the HTML5 <audio> tag with the loop attribute. Google Chrome gives a small gap between the loops, but big enough to be totally unacceptable for my purpose. I haven't tested the other browsers, but I believe it won't work.A possible workaround is to use ffmpeg to stream repetitions the same audio as an mp3. However, this costs a lot of bandwidth.

For myself I use Audacity to loop without gaps, but unfortunately Audacity doesn't have a web version.So, do you have any ideas how I may loop over an mp3 in a browser with zero gap? I prefer non-Flash solutions, but if nothing else works I'll use Flash.

View 4 Replies

Actionscript 3 :: Advantages And Disadvantages To Having Multiple Loops Flash

Jan 11, 2010

What are the advantages and disadvantages of having just one main loop and having a main class control individual objects on your stage, in oppose to having each individual object have its own loop and giving it the responsibilities of doing what ever it has to do on its own. What are consider best practices.

View 3 Replies

Flex :: Advantages/Disadvantages Of AIR Vs Flex/Web?

Jun 15, 2010

I'm tasked with writing an application for placing and connecting objects (sort of like a room planner where you can place furniture). i've made a demo using Flash Builder 4 and built it for AIR as a desktop app. Now the client wants the full app, but they and I am unsure whether to continue building it as an AIR app or transform it to a web application using Flex. I tried making a simple conversion of the AIR app to a web app, and most things worked but not all. The things that don't work seem to be simple bugs, though, not complete lack of capability.The capabilities that I'm going to need (except for the modelling) are: Printing of the finished image + a list of the furniture that has been placed

A way to save and retrieve finished plans

A way to export the list of furniture to Excel format

Handling a whole slew of data about the different objects

Only the printing has been implemented so far, and seems to work in the web app as well.What advantages/disadvantages are there with the two approaches? Are any of the capabilities I need much worse (or even impossible) to implement in either approach?

Disadvantages

Requires Flash 10 (for saving files)

Requires a web server to serve content

Sligthly longer development time (from where I am right now)

Requires an internet connection to work

Lots of data transport, may be slow on a slow network

Desktop AIR app

Advantages

Slightly faster development time (from where I am right now)

No web server necessary

Can be used while not connected to the internet

All data is local and faster to load

Disadvantages

Requires the Adobe AIR runtime + a separate installation of the program

Updates need to be distributed to all users and an admin needs to install them

View 4 Replies

Flash :: Debugging Tool For Flex That Functions Like Silverlight Spy Or FireBug?

Apr 15, 2012

Is there a debugging tool for Flex that functions like Silverlight spy or FireBug?

View 2 Replies

Flex Vs Silverlight For Student?

May 27, 2010

I am a student of computer science and am interested in learning development of RIAs. So which among silverlight and flex is more suitable for me and y?

View 4 Replies

C# :: Porting Silverlight App To Flex?

Mar 30, 2011

Perhaps a dumb question, but if you write a relative simple 2D game in .NET (e.g. for Silverlight) C# and you want to port it to Flex - just because you know C# and don't want to bother with other language, are there any means to facilitate this porting process?

Let's suppose that we are using FRAME BASED development (as Flash is, opposed to TimeLine in Silverlight) using the CompositionTarget.Rendering event.

I pose this question because I would like to try to create a fully functional app in .NET and then port it to Flex.

View 2 Replies

Javascript - Web Standards Alternatives To Flex/Silverlight?

May 19, 2010

Is there a set of open standards technologies that I can use to achieve the same way of development as in Flex and Sivlerlight? I am talking about componentization, separation of concerns, rich graphics, states and effects . Please point out some tutorials and other resources if possible.

P.S. I KNOW that this is technically possible, so please do not respond by sending google search results or general JQuery tutorials. I've seen those already. I need to know how a Flex / Silverlight developer could design and implement an application in roughly the same way (imagine a rich HTML tag set, much like XAML/MXML, behind which stands JavaScript responsible for handling events and business logic.

View 3 Replies

Flex :: Callback To Model Object?

Jul 23, 2010

I am trying to figure out how to define a callback to my model object, via the Mate Frameworks LocalEventMap.

<EventHandlers type="{WebServiceEvent.RT_GET}" debug="true">
<HTTPServiceInvoker url="/services/rtGet.asp">
<resultHandlers>

[Code]....

I get essentially the same error if I try to make method="model.rtGetHandleResult"

So, in keeping with the presentation model... how do I have the event map get this to the model to execute?

View 2 Replies

Flex :: Store The Model Of An Application?

Apr 25, 2011

I am working on an StoryBoarding application,it is a slide based application in which the authors can put several components like image , sound , captions etc in each of the slide.A collection of slides will make a storyboard.This application will be deployed on a web server (sharepoint + IIS , and php+apache), and several users can collaborate with each other for authoring or reviewing the storyboard.In my application I also want to support auto save ,which will keep on storing the state of the storyboard.User can also save at any point of time by clicking the save button.I am confused about how to store the state of the storyboard.

1)Presently I am doing this by passing all the storyboard data to a dot net web-service and then that service is storing images,caption etc in their respective tables into a database .2)Another approach possible is to store the model of the application as a serialized object into the db , which will be more convenient since separating the components of the model (like images,captions etc..) will not be required and also restoring the state of the objects in the application will be easy . I have two doubts about using approach 2 :-i) I want the the saved storyboard to load quickly, for which I would like to support the partial so that lighter objects like caption can be loaded quickly but other heavier objects like image,video etc can be loaded on demand. Using approach 2 , do I have to send the whole data in one go or is there way to support partial loading ?

View 1 Replies

Flex :: Bind XMLListCollection Into Model?

Mar 24, 2012

When the XMLListCollection is updated in the DataGrid, I want it to add the XML (bind it) into the Model. How would I do this? Or if not possible, how would I manually add XML into the Model?

This is a rough example of what I'm trying to do. Adding data to the DataGrid works fine; it just doesn't go into the Model when sending to the HTTPService.

<mx:Model id="model">
<root><colors>{collection}</colors></root>
</mx:Model>
<mx:XMLListCollection id="collection" />

[Code]....

View 1 Replies

Silverlight 4 Allows And Flash Does Not?

Apr 4, 2010

what are the main scenarios that Silverlight 4 allows and Flash does not?

View 3 Replies

Flex :: Develop An Online Multitouch Scrum-board / Flex Or Silverlight?

Sep 28, 2010

My company want to develop an online multitouch scrumboard for our scrumteams. We are still in doubt between flex and silverlight as platform for the application. (don't want to fire a hole new flex vs. silverlight discussion again) Installation rate & platform independence are not critical to us, because it's just for teammembers and only windows 7 enables multitouch events in flash or silverlight.We would like some pros/cons specifically for this project (multitouch, rich user interface, integration with backends).[code]

View 2 Replies

Flex :: Performance - Why Does Use A Single Threaded Model

Jul 10, 2009

Over the past few weeks I have been building a prototype application using a Flex front end connected to a J2EE backend using blazeDS. The prototype is an experiment to learn flex and see what its suitability is for a complex trading application requiring a large number of dynamic updates (i.e > 20 a second) via a pub sub type model. During some lightweight performance tests it's become apparent that I need to use multiple threads to ensure the UI remains stable when receiving a large number of updates from the server. All was going well until I discovered that flex has a single threaded programming model!

From a quick Google it looks as though there are numerous hacks to implement thread like behavior. I am sure many people must have been faced with a similar problem. Can people let me know: Are there any good threading libs that are well maintained etc Do other RIA technologies such as silverlight have the same problems. Why did abobe implement a single thread model? Are there any other tricks I can use to ensure my UI is stable.

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved