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 / Fabrication / routeNotification on: July 14, 2009, 08:45:35
Hi,

I have messing with the simple routing example located on the fabrication google code repository.

I am trying to catch the routeNotification events with the responseTo reflection and I have been unsuccessful. Her is what I am doing in the SimpleModuleMediator and FabricationRoutingDemoShellMediator I have created a new method called responseToReceiveMessage. I was expecting the the method to be executed when the the user sends a mesage by clicking one of the buttons in the shell or in the module. but nothing... Can someone help. The documentation 'using modlues' on the google code says it's possible... What am doing wrong?
I also tried to not register the receiveMessage notification with the 2 UpdateMessageCountCommand commands but the result is the same.

Is this possible or do you have to use command to talk to the different parties?

Please help.
Seb
2  Announcements and General Discussion / Fabrication / fabrication - simple routing example on: July 14, 2009, 03:46:38
Hi,

I have just downloaded the simple routine example. I got all the required libraries (fabrication-0.6-flex.swc, PureMVC_ASĀ£_Multicore_1_0_5.swc and Utility_AS3_MultiCore_Pipes_!_!.swc) and setup flex builder to find what it needs.

The code recompiled fine but the first time I clicked the Add Module button I got the following error:
ArgumentError: Error #1063: Argument count mismatch on mx.core::Container/removeEventListener(). Expected 2, got 1.
   at shell.view::ModulesContainerMediator/moduleError()[/Users/sebastienjouhans/WORK/esso-journeyplanner/PRODUCTION/SimpleRouting/src/shell/view/ModulesContainerMediator.as:134]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
   at mx.modules::ModuleLoader/moduleErrorHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\modules\ModuleLoader.as:370]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at ModuleInfoProxy/moduleEventHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\modules\ModuleManager.as:1097]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at ModuleInfo/errorHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\modules\ModuleManager.as:734]

I then add moduleError as a second parameter of the removeListener method:
event.target.removeEventListener(ModuleEvent.ERROR , moduleError);

I then recompiled and clicked the add module button. Nothing is happening...
Can someone point me in the right direction?
What am I doing wrong?

thanks
S


3  Announcements and General Discussion / Fabrication / Fabrication question on: July 13, 2009, 09:45:11
Hi,

I have been messing with the Fabrication utility and definitly considering it to use on my next project. But before I need to completely understand it so I was wondering if someone could explain the router defaultRouteAdress on the modules.
moduleLoader.router = applicationRouter;
moduleLoader.defaultRouteAddress = applicationAddress;
I guess these are used to setup the piping system in the background so I wondering what other option do we have here?

thanks
Seb
4  Announcements and General Discussion / General Discussion / statemachine + swfadress on: January 25, 2009, 12:42:46
hi,

I did a quick search and couldn't find anything on the subject. So I was wondering if anyone had thought about linking up the statemachine to swfaddress. If so is there an available example?

many thanks
S
5  PureMVC Manifold / Demos and Utils / AssetLoader utility... on: September 04, 2008, 06:00:24
Hi,

I realised I posted this on the wrong - I first posted it in the standard port to AS3...

I have been looking at the assetLoader utility ( http://revisual.co.uk/?p=153 ) and had a couple of questions.

I was wondering if it was possible to load a swf that is used as a library and use it at a later date rather than adding it to the stage straight away as soon as it's loaded.

The swf would then be used later in the application to retrieve needed assets. Is there away to retreive the loaded assets? Are they stored in a locator something?

I am used to use LowRa (http://code.google.com/p/lowra/) which has a nice way to load graphics or files (xml). It also has a nice sequential preloading system (QueueLoader) where the graphic loader and the file loader can be pushed into. pureMVC could (IMHO) benefice of such utility.

I am still unsure about using the assetLoader utility. I still need to look the code in more details...

thanks
Seb
6  PureMVC Manifold / Standard Version / AssetLoader utility... on: September 02, 2008, 09:15:40
Hi,

I have been looking at the assetLoader utility ( http://revisual.co.uk/?p=153 ) and had a couple of questions.

I was wondering if it was possible to load a swf that is used as a library and use it at a later date rather than adding it to the stage straight away as soon as it's loaded.

The swf would then be used later in the application to retrieve needed assets. Is there away to retreive the loaded assets? Are they stored in a locator something?

I am used to use LowRa (http://code.google.com/p/lowra/) which has a nice way to load graphics or files (xml). It also has a nice sequential preloading system (QueueLoader) where the graphic loader and the file loader can be pushed into. pureMVC could (IMHO) benefice of such utility.

I am still unsure about using the assetLoader utility. I still need to look the code in more details...

thanks
Seb
7  Announcements and General Discussion / General Discussion / Flash Demo? on: July 16, 2007, 07:20:01
Hi,

I am a Flash programmer and although I understand what you've done in Flex I have some little problems to apply to Flash as I don't want to start invoking or declaring function/command at the wrong place.

So I was wondering if you had any Flash examples with where you are using the framework. Even a very simple one would do...

Coz at the moment I am only sort of guessing what I am doing.
i.e. Flash uses a Document Root Class to initialise the application. So I'm guessing that's where I have to instanciate the ApplicationFacade, correct?

Flash Examples please?

Thanks
seb

8  Announcements and General Discussion / General Discussion / memory management on: July 10, 2007, 03:34:53
Hi,

I have been looking at the 3 following frameworks PureMVC, ARP3 and Cairngorm 2.01.  And what stricked me the most in PureMVC (as well as ARP3) is that everything get stored in Arrays (views, commands...). So from my understanding since none of the instance classes will have weak references they will never be up for being garbage collected. This will just keep making the memory usage go up, won't it? and eventually make the computer crash.

Wouldn't it be more appropriate to use dictionaries ( new Dictionary( true ) ) to store the instances instead of arrays (new Array() )?

What do you think?

thanks
Seb
Pages: [1]