tags:

views:

42

answers:

0

If I have an app that has "multiple" widgets in it, like chat, video, slide presenter, etc., would I set up one directory in the FMS applications folder for the whole application, or multiple? Just one main.asc file for the whole app, or multiple?

For instance, the platform comes with a "live" folder containing a sample live streaming service implementation. Suppose I build a Flex client to use it, and then add chat to the client as well. Does my server side chat code go in the live folder?

I guess that begs the question of how many connections and netstreams my client app will have - just one that all widgets use or one for each widget in the app?

Imagine each widget as say, a Flex custom component, each in it's own file. Does each have it's own NetConnection and NetStream code or do they somehow share such code in the main application file?

I've started an FMS/Flex app. I don't seem to be able to create and connect a new shared object anywhere but the main application file. If I do it in a sub-component (like a chat custom component) in a separate file, the following code gets executed, but does not create a new shared object:

text_so=SharedObject.getRemote("sharedText",nc.uri,false);

text_so.connect(nc);