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  PureMVC Manifold / Demos and Utils / Re: Loadup for Assets - A PureMVC AS3 / Flex / Loadup Utility Demo on: November 12, 2009, 11:06:21
Philip,

Fist of all, thank you for your contribution and your time.
... it is important to refer to the API Docs... For example, the docs with the LoadupMonitorProxy class.

I could not miss the API page about LoadupMonitorProxy that I fully translated http://www.daigleetcie.com/loadup/LoadupMonitorProxy.pdf (I am about to recitate it like the rosary  ;D ). 
Also I can hardly do without sample that I patiently try to understand ( that's the way we learn isn't it ?)

In case of LAO, believe me, I was not the only one to wonder why some loadings were failing. Thank's to Tek, I could reconsiders this sample as "a demonstration  how the application react when there is failures" and discovered that business layer was in fact ramdomizing routines (...if only these Invoice, SaleOfOrder or DebitorAccount could have been xml files, it would already be done :) )

In case of LFA, you seems not considering your demo reliable enough for real application ( of course, we surely have not the same level of mastery). I don't agree and since then, I desperately try to replace the monitor I used, based on StartupMonitor proxy (included in AppSkeleton demo) by a LoadupMonitor instance. The former one was working just fine but loading up resources whenever needed and not just during startup phase is really interesting,indeed.

LFA nearly seems to answer my needs (i.e load and exploit in an ordered way some xml configuration files)
The only difference I see is about the view layer that is, in my case, no more required.  So I believe I can delete GroupOfAssets.mxml and its mediator but if as you suggest, I delete all others files, what should I replace it by ?  Where should go all business code from the GroupOfAssetsMediator, LoadAssetGroupInstructions.as LoadAssetGroupCommand ?


2  PureMVC Manifold / Demos and Utils / Re: Loadup for Assets - A PureMVC AS3 / Flex / Loadup Utility Demo on: November 11, 2009, 02:47:45
Hello all !

I must admit that this loadup lib is pretty hard to master. :P

Here's my question of the day related to LoadupForAssets demo:

In case I don't want assets to be displayed into an UIcontainer (jpeg here but could be xml for example) so I can get rid of the now useless GroupOfAssets.mxml. Right ?

Then, will I need to convert GroupOfAssetsMediator that hosts important methods as doHandleNotification() or loadingInstructions() into a Proxy  ?

Thanx for your help and please don't refer me to LoadupAsOrdered example as it is more a simulator than a demo.

3  PureMVC Manifold / Demos and Utils / Re: Loadup as Ordered - A PureMVC AS3 / Flex Demo on: November 05, 2009, 03:40:21
Thank's a lot !     ;)
4  PureMVC Manifold / Demos and Utils / Re: Loadup as Ordered - A PureMVC AS3 / Flex Demo on: November 05, 2009, 01:27:21
Tek,

Thank's for your explanations. I think I understand now a little better the aim of this demo (to me,  "simulator"  would be a better word)

So If I want to load somes xml files in an ordered way (like configuration and localisation in AppSkeleton demo, for example) I should get rid of these dummy files (InvoiceProxy, EntityProxy, ProductProxy...). and set up proxies with proper load() result() and fault() methods. Am I right ?
5  PureMVC Manifold / Demos and Utils / Re: Loadup as Ordered - A PureMVC AS3 / Flex Demo on: November 05, 2009, 09:56:59
Running the LoadupAsOrdered demo, the loading finishes "incomplete". What does this means ?

In the case of LoadupForAssets demo, I can understand a loading failure  (targeting unobtainable or corrupted assets) but for internals resources, I really don't understand  ???
6  PureMVC Manifold / MultiCore Version / Re: HelloPipes - a basic Demo using MultiCore, Pipes Utility and Modules on: October 31, 2009, 09:05:35
Cliff,
My build works just fine now ! I misunderstood the meaning of somes Ant parameters so I completely rebuilt all my paths and doublechecked correspondence between the ones defined through properties and those passed in arguments.


One last question: as /common directory only contains classes (not intended to be delivered); what's the interest to make a swc ?
7  PureMVC Manifold / MultiCore Version / Re: HelloPipes - a basic Demo using MultiCore, Pipes Utility and Modules on: October 26, 2009, 04:46:22
Thx for your help!

The /common directory contains IPipeAwareModule.as and PipeAwareModuleConstants.as  (these 2 files are provided in sectore sample so I assume they're not in a swc)

Yes I added a source-path path-element inside mxmlc tag but same result  :(
and yes I have actually 2 targets:

<project...  basedir=".." default="shell" >
    ...
    <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar" />
   
    <target name="loginmodule" >
       <mxmlc file="${MODULE_ROOT}/loginmodule/view/LoginModule.mxml" output="${DEPLOY_DIR}/LoginModule.swf" >
              <source-path path-element="${COMMON_ROOT}" />
              <source-path path-element="${MODULE_ROOT}/loginmodule" />
       </mxmlc>
    </target>
   
    <target name="shell" depends="loginmodule">
       ...
    </target>
</project>

Still searching....as you convinced me that it's a missing path somewhere.
8  PureMVC Manifold / MultiCore Version / Re: HelloPipes - a basic Demo using MultiCore, Pipes Utility and Modules on: October 26, 2009, 01:38:26
That may be OT but could help whose like me are setting up an ant builder for sectore sample-like app.

I use the mxmlc task included with the Flex 3 SDK (flexTasks.tasks) but my ant script fails to compile a module swf because it can't get access to IPipeAwareModule.as file in common rep.

Here the msg I get:
Buildfile: D:\myproject\build\build.xml
loginmodule:
    [mxmlc] Loading configuration file C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.4\frameworks\flex-config.xml
    [mxmlc] D:\myproject\src\com\myproject\modules\loginmodule\view\LoginModule.mxml(4):  Error: Interface IPipeAwareModule was not found.
    [mxmlc]    implements="com.myproject.common.IPipeAwareModule"


Thanks in advance if an ant-expert can tell me what is missing ?
9  PureMVC Manifold / MultiCore Version / Re: HelloPipes - a basic Demo using MultiCore, Pipes Utility and Modules on: October 19, 2009, 11:37:26
You're right,Cliff !

Ant is like h1n1 flu vaccine: we don't wAnt but... 

:)
10  PureMVC Manifold / MultiCore Version / Re: HelloPipes - a basic Demo using MultiCore, Pipes Utility and Modules on: October 19, 2009, 10:04:35
Hi Jens

Thank's a lot for this clear skeleton. I now base my projects on it (...thx to Tek and Cliff too  ;-) )

The only change I'd do is moving each module's main mxml from project root (/src)
to their own /view package instead.

Unfortunately as soon as I do it in Flex Builder, the generated swf is then misplaced and shell app does not find it anymore. Moreover when I set up module's properties in <Project>/Properties/Flex Modules windows,  the path of [Output SWF] is in a read-only textbox.

Any idea how to fix this ?


11  Announcements and General Discussion / Public Demos, Tools and Applications / Re: pureMVC Utility - WidgetsConsole an utility to centralize views in Flex/Flas on: October 06, 2009, 09:03:48
Hi Erin,

Surprised that you did not have any feedback on such work...

Is your console compares itself  to Tek's module and pipes communication skeleton ?
(http://www.tekool.net/blogfiles/puremvc_flex_modules_and_pipes/project/PureMVC_FlexModulesAndPipes.html)

Thx for your answer  ;)
12  PureMVC Manifold / Demos and Utils / Re: EmployeeAdmin - A PureMVC AS3 / Flex Demo on: December 09, 2008, 03:05:01
You got it, Jasonmac  !
A big thank to you too  :D

I didn't see that event.result has to be casted to an Array first,before being casted to an AC.

Now I get an AC as in original EmployeeAdmin demo. That's cool !


 
13  PureMVC Manifold / Demos and Utils / Re: EmployeeAdmin - A PureMVC AS3 / Flex Demo on: December 08, 2008, 09:20:51
 Unfortunately,Cliff, that's not as easy :-[

If I cast the result to AC in the resultHandler of UserProxy like that:
:
...
private var resultAC:ArrayCollection;
...
public function get users():ArrayCollection{
    return data as ArrayCollection;
}
...
private function onLoadAllResultHandler(event:ResultEvent):void {
     resultAC= event.result as ArrayCollection;
     setData(resultAC);
     sendNotification(USER_LIST_RESPONSE,resultAC);
}

then in UserList:
...
:
[Bindable] public var users:ArrayCollection;
and finally in UserListMediator:
:
...
override public function handleNotification( notif:INotification ):void{
   switch ( notif.getName() ){
      ...
      case UserProxy.USER_LIST_RESPONSE
         userList.users = userProxy.users as ArrayCollection
         break;
    }
    ...
    public function get userList():UserList{
         return viewComponent as UserList;
     }
}


there is no error but my datagrid doesn't display data anymore  ???

14  PureMVC Manifold / Demos and Utils / Re: EmployeeAdmin - A PureMVC AS3 / Flex Demo on: December 08, 2008, 06:27:47
The remote service returns an Array. So  the statement
:
userList.users=userProxy.users
works as soon as I type both parts as an Array.

Just need to know how to get an AC instead.

Thx again Cliff.

15  PureMVC Manifold / Demos and Utils / Re: EmployeeAdmin - A PureMVC AS3 / Flex Demo on: December 02, 2008, 09:02:24
Hi,

I adapted the EmployeeAdmin example to  remote data with AMFPHP and to deferred instanciation management (inspired by Slacker example)

My UserProxy now sends a RESPONSE notification to UserListMediator as soon as its RemoteObject brings back data and my users-getter is loosely typed:
:
public function get users():Object{
return data as Object;
}
Then UserListMediator handles this notification and feeds its datagrid through nearly same line as original:
:
userList.users=userProxy.users as ArrayCollection
Unfortunately my grid stay empty  :(

Weirdly, each of following statements works and fills my grid.
:
userList.userDatagrid.dataProvider=userProxy.users;and
:
userList.users=new ArrayCollection([{username: 'bigjoe', fname: 'john',lname:"Doe"...}]);
So, userList.users can receive an AC and userProxy.users is not empty and feed a dataprovider...

Can somebody help me understand why second can't feed first ?

Thx
Eric

Pages: [1] 2