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  PureMVC Manifold / Standard Version / Re: Best strategy ? on: December 30, 2011, 03:20:58
Ok. Thank you.

lulu.
2  PureMVC Manifold / Standard Version / Best strategy ? on: December 29, 2011, 07:51:07
Hi all,

Another question regarding PureMVC best practices:
My application contains several identical screens, each including a video player. Each player plays a different source.
I hesitate between one mediator by player responding to a particular notification which contains the source or a unique mediator, differents names, for all players and one notification which contains all sources. In this case, the notification contains the mediator's name to set the source of the right player.

I don't know if I'm clear.

Actually, my question is: what would you do in that particular case?

Thanks.

lulu.
3  PureMVC Manifold / Standard Version / Re: Async Macro Command on: December 23, 2011, 08:54:18
Uh, here's a thing I've never heard about. This is exactly what I need.
Thanks.

lulu.
4  PureMVC Manifold / Standard Version / Re: Async Macro Command on: December 23, 2011, 04:24:27
@Tek: In my MVC understanding, I consider Proxies as a storage object with limited actions. I'm going to watch this way out.

@phillipSe: I'm not sure to understand the Loadup utility but I saw this issue as a generic mechanism, which can execute various tasks.

Thanks both.
lulu.
5  PureMVC Manifold / Standard Version / Async Macro Command on: December 23, 2011, 02:39:19
Hi,

I would like to know the best practice to set the following issue:

How can I create an async macro command which will execute a task list, each one needing values from the previous one?
i.e., I store data in a remote database which returns the id of the last row. After what, I store this id in my local database.
I've thought storing each temporary data in a proxy but I'm not sure it's a good idea.

Thanks. lulu.
6  PureMVC Manifold / Standard Version / Re: Command dispatcher on: December 07, 2011, 09:25:18
Hi Cliff,

Thank you for your answer. That's make sense.

lulu.
7  PureMVC Manifold / Standard Version / Command dispatcher on: December 07, 2011, 07:57:43
I often find myself having to manage a system of adding and editing data from the same interface. I have not found the right way to do it yet.
My first idea was to create a command that will check what other command has to be executed from a value in the body of the notification. It was, I think, the role of a macrocommand but it is not possible to override the execute method to retrieve the notification.

What is the proper way to proceed?

Thank you. lulu.
8  PureMVC Manifold / Demos and Utils / Re: Startup for Assets - A PureMVC AS3 / Flex / StartupManager Demo on: October 21, 2008, 10:19:37
Yes, that's the idea.
Should I transfer data from the default proxy to my personal one in the NEW_ASSET_AVAILABLE handler (like I did in my sample code above) ?
9  PureMVC Manifold / Demos and Utils / Re: Startup for Assets - A PureMVC AS3 / Flex / StartupManager Demo on: October 21, 2008, 08:04:17
I'm back javascript:void(0);

I have understood where the data are stored after loading but, actually, I want to use a personal proxy with specific methods.
What is the best way to do this ?

Thanks. lulu.

(I try to be clear but...)
10  PureMVC Manifold / Demos and Utils / Re: Startup for Assets - A PureMVC AS3 / Flex / StartupManager Demo on: October 20, 2008, 08:58:59
ok.
You solve my problem.

Thanks.
11  PureMVC Manifold / Demos and Utils / Re: Startup for Assets - A PureMVC AS3 / Flex / StartupManager Demo on: October 20, 2008, 08:04:08
Hi,

thank you for your reply.

Actually, I just want to set my data from each url (just one in my sample code but the same for more) in a specific proxy.
I use the same ApplicationMediator as the one on the demo and in the NEW_ASSET_AVAILABLE handler, I compare the url to set the appropriate proxy (see below).

I guess there's an automatic process to do this. Isn't it ?

:
private function setProxyData( p_asset:IAsset ):void
{
var l_proxyName:String;
var l_data:*;
switch( p_asset.url )
{
case DefaultAssetsURL.SETTINGS_URL:
l_proxyName = SettingsProxy.NAME;
l_data = new XML( p_asset.data );
break;
}
var l_proxy:IProxy = this.facade.retrieveProxy( l_proxyName );
l_proxy.setData( l_data );
}

//[...]
case StartupManager.NEW_ASSET_AVAILABLE:
this.setProxyData( note.getBody( ) as IAsset );
break;
//[...]

Thanks for the .css.
No other type wish for the moment.

lulu.
12  PureMVC Manifold / Demos and Utils / Re: Startup for Assets - A PureMVC AS3 / Flex / StartupManager Demo on: October 18, 2008, 02:40:47
Hi,

I try to set up this demo for my development.
My files are well loaded but I can't understand how I have to store assets data in an appropriate proxy.
I think I have to register a proxy for each assets url but...

Here's my StartupCommand :

:
public class StartupCommand extends SimpleCommand implements ICommand
{
override public function execute( note:INotification ) : void
{
this.facade.registerProxy( new SettingsProxy( ) ); // this is the proxy where I want to store data from "assets/settings.xml"

var l_fileList:Array = [
"assets/settings.xml"
];
this.facade.registerProxy( new Proxy( ApplicationFacade.URL_GROUP_PROXY, l_fileList ) );
this.facade.registerMediator( new ApplicationMediator( note.getBody( ) ) );
}
}

Can anyone help ? lulu.

Subsidiary question : when I try to load a .css file, my application crashes (in a previous demo, it worked). Do you know why ?
Pages: [1]