That's the goal of modules.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of b_alen Sent: Tuesday, September 18, 2007 1:24 AM To: [email protected] Subject: [flexcoders] Re: Loading code from swf (instantiating classes from external swf) Cheers guys, just one quick check, is it possible with these two methods: 1. I make an application and deploy it on the web. 2. You, knowing nothing about the application except the API I provide you, write the extension and submit it in form of swf on my server. 3. My application recognizes that the new extension has been submitted, it downloads it and uses the code from there. Let's say I have an employee management system, where different operations can be made on the employee. You write an extension where user can for example use their web cam in order to save a pic in the database. Now application is already up and running, and you submit this to the server, I don't have to recompile and know nothing about your part and all you need to know is my API. It's purely a hypothetical example but for the case above I would provide something like that probably: ModelLocator.empDataManager.addEmployeeDetail(id:String, name:String); ModelLocator.empDataManager.editEmployeeDetail(id:String, value:Object); you would call this from your swf like this: ModelLocator.empDataManager.addEmployeeDetail("webcam_pic", "Webcam pic"); ModelLocator.empDataManager.editEmployeeDetail("webcam_pic", picData); What do you think? --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Steve Mathews" <[EMAIL PROTECTED]> wrote: > > You can use LoadModule, which might be the best way to go. But I am > doing a AS3 only project (no flex framework) and am doing this using > applicationDomain.getDefinition which works great. > > On 9/17/07, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > On Monday 17 Sep 2007, [EMAIL PROTECTED] wrote: > > > I tried Google but I couldn't find anything, maybe it's pretty easy > > > and maybe it's impossible. Anyone has any ideas? > > > > LoadModule > > > > -- > > Tom Chiverton > > Helping to continuously bully cross-media mindshares > > on: http://thefalken.livejournal.com <http://thefalken.livejournal.com> > > > > **************************************************** > > > > This email is sent for and on behalf of Halliwells LLP. > > > > Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. > > > > CONFIDENTIALITY > > > > This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. > > > > For more information about Halliwells LLP visit www.halliwells.com. > > > > > > > > -- > > Flexcoders Mailing List > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> > > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com <http://www.mail-archive.com/flexcoders%40yahoogroups.com> > > Yahoo! Groups Links > > > > > > > > >

