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] 2
1  Announcements and General Discussion / Fabrication / Re: routeNotification on: July 15, 2009, 01:53:29
Jason,

Thanks for your response. I found what was wrong with my code.

I was using responseToReceiveMessage as opposed to respondToReceiveMessage... d'oh!

It now works like it supposed to.

thanks
S
2  Announcements and General Discussion / Fabrication / Re: routeNotification on: July 14, 2009, 09:26:03
if I register for the notification with the usual method (without using the reflective way).
like so, it works...

override public function listNotificationInterests():Array{
   var interests:Array = super.listNotificationInterests();
   interests.push( "receiveMessage" );
   return interests;
}

override public function handleNotification(note:INotification):void{
   switch(note.getName())   {
      case "receiveMessage":
         trace(note.getName() , "FabricationTestMediator::handleNotification" )
      break;
      
      default:
         super.handleNotification( note );
   }
}

any thoughts?
3  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
4  Announcements and General Discussion / Fabrication / Re: fabrication - simple routing example on: July 14, 2009, 03:52:11
ok got it working.

Flex Builder names the module after the Module file name. Since the file is SimpleModule.mxml the output swf was named SimpleModule.swf.

I renamed the simple_module.swf to SimpleModule.swf on line 131 in the MessageControlBarMediator and it is now working.

5  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


6  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
7  Announcements and General Discussion / General Discussion / Re: statemachine + swfadress on: March 08, 2009, 12:50:30
cool, i am looking forward to it.

many thx
s
8  Announcements and General Discussion / General Discussion / Re: statemachine + swfadress on: March 06, 2009, 03:17:09
Cliff,

Have you had time to look into this? If so do you think you'll be able to provide an example using swf address?

Many thanks
S
9  Announcements and General Discussion / General Discussion / Re: Multicore Modules with AIR & SQLite on: January 30, 2009, 09:30:19
@Darshan,

Yup sorry for misleading anyone here. I looked the size of the utility package size which contents a lot of comments which probably explain why I came up with that 500ko number. Indeed the swc is much smaller around 70k.
I am looking at to use in one of my project ;)
10  Announcements and General Discussion / General Discussion / Re: Multicore Pipes vs Fabrication on: January 26, 2009, 07:45:11
Fabrication does indeed look very attractive but it comes at a price. be aware that the whole utility is more than 500Kb. I guess that depending on what feature you use the size will differ but certainly some thing to keep in mind.

S
11  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
12  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
13  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
14  Announcements and General Discussion / General Discussion / Re: Flash Demo? on: August 01, 2007, 01:31:17
Hi Cliff,

Thanks so much for this. I will download the demo and see what the differences between mine and yours. I actually made great process since my last post as I am now now using Flash just to produce the asset and using FlashDevelop combine with ANT and the mxmlc compiler to create the final swf.

The Workflow is very efficient and very much like the way I am working in AS2 which is FlashDevelop+ANT+MTASC with pixlib (AS2 framework).

Thanks so much again for the example.

Seb
15  Announcements and General Discussion / General Discussion / Re: Flash Demo? on: July 19, 2007, 09:31:13
Thanks Clif, looking forward to see the examples.

yes that's what I gathered about the AppliocationFacade. I created an Application Class which extands Sprite and that the instanciates the ApplicationFacade.

So far I have managed to get 2 buttons (mediators) working and they send notifications. the next step is to modify the state of another mediator when those notication happen i.e. go to a different frame label.

While wating for that Flash example I will carry on trying to crack the Framework with Flash. The way things work are very similare to other framework. I just need to find time to sit down and experiment..

Looking forward to see the examples
thanks

seb
Pages: [1] 2