hi, just curious, how do u plan to load these swf (widgets) in the main swf file (application swf), are you using moduleloader, if not then do read about modules in flex.
Saurabh http://blog.saurabhnarula.com/ On Thu, Dec 10, 2009 at 6:18 PM, suresh nagar <[email protected]>wrote: > Hi Friends, > i am working on a dashboard application using flex and am stuck on a > design issue. First a brief of what i have thought so far. > As its a dashboard - pure flex (we have some pages like flex in html/ > jsp etc as well)..its gonna be a flex project and application. > Dashboard has different widgets for different functionality and user > can display or close them as needed (just like igoogle). > all the widgets need to have properties like drag/drop, minimize/ > restore, close etc so they are extended from a baseclass which is > again a extended from panel and drag drop etc capabilities added to > it. > now say i have 100 widgets and they can be grouped into 5 groups of 20 > widgets each. depending on the user preference and user action - when > user wants to add a widget - i initiate the class using > getDefinitionByName(..) (classname i receive from server in xml file) > and add to the dashboard. > now if i will add all the widgets at compile time then all the 100 > widgets will be in the swf file and the size may grow of the swf file > and also as a 90% of the cases user will belong to a group and will > have permission to only widgets of his group i will be downloading > whole stuff on the user machine without ever being used - only some > super user will have permissions to all the groups and can add widgets > from across the groups. > > i am looking for a mechanism where i can have a widgets (mxml) in > different swf and load the swf when needed and instantiate classes and > add to dashboard. > i tried the > http://www.adobe.com/livedocs/flex/3/langref/flash/system/ApplicationDomain.html > example but it works only if swf is from ActionScript project and does > not work if the swf is created as flex project. i am just trying to > explore a way if i can create 5 different swf files as libraries with > 20 each mxml widgets and through dashboard load the required swf(s) > and instantiate classes from those loaded swf and add to dashboard. > > can somebody suggest me how this problem can be approached. > its still in prototye stage, so even a 180 degree turn from the > approach mentioned above will be fine with me. > > -- > > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

