Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Show Posts

* | |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / Architecture / Re: Trouble with view components - mad stuck on: June 13, 2008, 03:25:55
Is there a reason you're using a separate mediator for each image?

I don't know how you're app is laid out, but I would remove that layer of abstraction.  Create a single mediator that directly controls each image view component.  It would be responsible for transitioning between individual images, adding and removing images from the display list, and whatever else your app does.

I haven't experienced the "20" issue before, but perhaps if you remove the 2nd level mediator complexity, it'll "solve" that issue.
2  PureMVC Manifold / Standard Version / PureMVC FlexUnit Testing on: June 11, 2008, 05:28:44
I've been getting into some Flex 3 lately and have been loving both PureMVC Standard and MultiCore.  Without PureMVC, my Flex and Flash code would be (and is) a total mess.  So amazing job, PureMVC team.  I'd be lost without you.

Recently I picked up a copy of the Flex 3 Cookbook and was drawn into the chapter on FlexUnit.  I played with some of the samples and immediately tried to apply it to the PureMVC Flex project I was working on.  All was well until I tried to write some simple unit tests for various asynchronous web service methods in a Proxy.  The FlexUnit way of dealing with asynchronous interactions is to use their addAsync() factory method when attaching to an EventDispatcher with addEventListener().  Since PureMVC doesn't throw events (at least not to my knowledge -- it may behind the scenes), I had to hack something together.

And so the PureMVC FlexUnit Testing project was born.

I made a detailed write-up for those interested laying out how it works and my thought process.  I did some research before going down this road but couldn't find anyone with a similar solution.  Maybe I'm blind or maybe I just wasn't asking the right questions.

I'd love to get some feedback from the PureMVC community.  Is this an acceptable way to go about unit testing asynchronous Notifications or is there something completely obvious I'm missing?
Pages: [1]