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  Announcements and General Discussion / Architecture / Re: Where to put styles of view components on: September 29, 2008, 08:54:56
thanks for the reply. However, I should've mentioned that I'm not working on a Flex application, but a pure AS3 one. There, the regular handling of styles through css stylesheets doesn't work that way. Any suggestions?
Thanks.
2  Announcements and General Discussion / Architecture / Where to put styles of view components on: September 29, 2008, 08:19:06
I'm wondering how to manage styles for view components, e.g. sizing, spacing of sub-items etc.

Of course, there are cases where you'll only need styles within a single class, so you could just put them in constants at the top of the class but in other instances you have to be able to access this kind of information from several view components...

Since the view components are not supposed to know anything about the PureMVC framework, I can't put them in proxies. What's a best practice concerning this topic?

Thanks.
3  Announcements and General Discussion / General Discussion / loading various assets on application startup on: September 03, 2008, 07:52:31
Hi-

I'm creating my first application in PureMVC (ActionScript 3 and Flash) and I can't quite figure out what the best way would be to handle asset loading.

I have a main.swf which holds all of the code and the MainApplication. When the SWF runs, the following files should be loaded:

- assets.swf (movieclip assets, no code, just used for view components)
- fonts.swf (a SWF holding fonts that are later registered so they are available throughout the entire app)
- styles.css (a CSS file containing styles)
- application.xml and possibly more XMLs (data like labels, navigation info etc for the app)

Now, I realize that some of these things will later be handled by mediators (view assets), others by proxies (xmls). How and WHERE should I load all these files?
Just in one huge loading process in the beginning after the facade is started? Or should I load the view SWFs OUTSIDE of PureMVC in my MainApplication and the rest later after I started up the facade? Maybe there are even other, better, ways... I don't know.

Please help.
Thanks.
4  Announcements and General Discussion / General Discussion / Re: Handling FlashVars in PureMVC on: September 03, 2008, 04:55:42
Cliff, if I'd like to stay in line with the PureMVC conventions, would it be legal to access the ParamsProxy from another Proxy (e.g. my ApplicationProxy or whatever)? I haven't quite figured this out.

A more general form of this question would be: may proxies access other proxies through the facade?

Thanks.
Pages: [1]