Hi,
SWCs have nothing to do with loading and runtime. An SWC is a collection of
abc bytecode that gets compiled into a application with the mxmlc compiler.

You have to create the rsl from an SWC with the compiler.

Mike

On Thu, Oct 2, 2008 at 7:29 AM, Sefi Ninio <[EMAIL PROTECTED]> wrote:

>   Hmm... I thought that for SWC to be lazy loaded as RSLs, they need to be
> SWZ (which only Adobe can create)...
>
> On Thu, Oct 2, 2008 at 1:53 PM, Michael Schmalle <[EMAIL PROTECTED]>wrote:
>
>>   > Is it possible to lazy load a SWC?
>>
>> No, SWC have to be compiled with the mxmlc compiler into the app.
>>
>> RSLs can lazy load component libraries though.
>>
>> Mike
>>
>> On Thu, Oct 2, 2008 at 3:39 AM, Sefi Ninio <[EMAIL PROTECTED]> wrote:
>>
>>>   Hey Scott,
>>>
>>> I actually thought of creating a SWC as well, but I wanted to leverage
>>> lazy loading into the main app, that's why I thought more along the lines of
>>> a module loaded first time it's needed.
>>> Is it possible to lazy load a SWC?
>>>
>>> On Thu, Oct 2, 2008 at 10:17 AM, Scott Melby <[EMAIL PROTECTED]>wrote:
>>>
>>>>    I would be inclined to use the component compiler 
>>>> (compc<http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_22.html>)
>>>> to build a component into a .swc library (think flexlib) that you could 
>>>> then
>>>> easily use from each version of your application (just load the .swc as a
>>>> library).
>>>>
>>>> hth
>>>> Scott
>>>>
>>>> --
>>>> Scott Melby
>>>> Founder, Fast Lane Software LLC
>>>> http://www.fastlanesw.com
>>>>
>>>>
>>>>
>>>> sefi.ninio wrote:
>>>>
>>>>  Hi everyone.
>>>>
>>>> I have a functionality that needs to be implemented both as a
>>>> standalone app (for users with restricted access) and as a module in
>>>> the main app (for users with full rights access).
>>>>
>>>> In the effort of code reuse (and laziness, of course), I'd like to
>>>> implement the functionality once and pack it as a standalone
>>>> application and as a module to be loaded inside the main app.
>>>>
>>>> I am in the middle of the process of thinking how to achieve this, and
>>>> would appreciate any suggestions the community here might have to offer.
>>>>
>>>> I thought of packing it as a module and make both main app and
>>>> restricted app load it as a module - that seems the obvious approach,
>>>> but I'm curious if there are more elegant ways to resolve this.
>>>>
>>>> Thanks,
>>>> Sefi
>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> Teoti Graphix, LLC
>> http://www.teotigraphix.com
>>
>> Teoti Graphix Blog
>> http://www.blog.teotigraphix.com
>>
>> You can find more by solving the problem then by 'asking the question'.
>>
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to