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

Pages: [1]
Print
Author Topic: Pre-loading data from remote objects  (Read 3782 times)
dyoo
Newbie
*
Posts: 3


View Profile Email
« on: November 20, 2007, 11:04:18 »

Hi,

I'd like to load a remote object via AMFPHP when my application first starts. The object would be accessed over the life of the application.

I'm trying to figure out where the best place to put the initial object load AND where to store the reference to the object.

The object would be used when performing business rules AND it is referenced to populate a combo box.

Where do these top-level data structures go?

How do we load remote objects when the result is an event?

I should mention that the object to be loaded depends on other variables so fetching the object in the constructor of my remote object proxy may not be the best approach.

Thanks,

Danny
« Last Edit: November 20, 2007, 11:11:20 by dyoo » Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: November 20, 2007, 01:39:42 »

Daniele Ugoletti has done some work on this and has written an Application Skeleton that has to retrieve XML data at startup.

Please have a look at this thread:
http://forums.puremvc.org/index.php?topic=21.0

Read the whole thread, (both pages) as toward the end, some refinements were made to handle multiple resources being loaded. The final download location was http://dev.ugoletti.com/puremvc/ApplicationSkeleton_v1.3.zip

Very soon, we'll have a public repository set up for this and other related projects.

-=Cliff>
Logged
Pages: [1]
Print