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
|
Pages: 1 ... 4 5 [6]
|
77
|
Announcements and General Discussion / Architecture / Simple site loading 2 or more types of data
|
on: July 11, 2009, 07:18:05
|
hi I have a simple site with a navigation bar, visual loader and I need to be able to load 2 types of data, flickr feed data (xml) and swfs.
I have a data.xml file which contains the urls , either to the local swf content or the flickr api feeds.
Right now, I let the Proxy(model) check the URL to see what type of data is being loaded, and then creates the corresponding loader logic(URLLoader for XML or Loader for SWF's)as well as corresponding handlers.
So I have 2 different notifications the Proxy sends, depending on the type of data loaded.
If I need to load additional types of data(flv, jpg, etc) I would need to check for this in the Proxy, and create additional notifications for each new type of data.
Is this a 'best practice' or is there a better way? ie I was thinking perhaps that some people would put the logic for determining the type of data to be loaded in the Commands
|
|
|
80
|
Announcements and General Discussion / Getting Started / Q: Loading external SWF's, MovieClip Classes and Mediators
|
on: September 15, 2008, 10:04:19
|
Trying to get a basic demo working. I'm loading external swf's , each of which is associated with the same MovieClip class.
I have an main Application Mediator and a 'SWFMediator' which is only related to these swf's that are loaded.
Where do I put the actual logic to load these external swf's?
Normally, in my MVC work all state and loading preloading logic is in the model. Can someone give me a quick example?
|
|
|
|
|
|