Note that if you have built Flex .swc libraries, you can link  to them at
compile time if you put them into the
WEB-INF/flexlib directory. Our compiler adds that directory to the external
library path when it calls flex. See the example
lps/components/incubator/googlemap.lzx
which links in the Google Maps API.

That is probably the way to go if you have Actionscript 3 code which needs
to put code into packages, because our compiler doesn't know how to deal
with as3 package declarations, and will put every class file goes into the
top level namespace.





On Thu, Feb 10, 2011 at 11:18 AM, P T Withington <[email protected]> wrote:

> That will work, but note you can do this all outside the kernel too.  See
> for instance lps/components/extensions.  If anything, our goal is to move
> more stuff out of the lfc than into it!
>
> On 2011-02-10, at 11:06, Raju Bitter wrote:
>
> > What would I need to do to add custom classes to the build process for
> the
> > SWF9 runtime?
> >
> > 1) Create the .as class file
> > 2) Add it to
> >
> http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/Library.lzs
> > 3) Add a view wrapping the AS3 component to
> > http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc/views/
> >
> > And re-build the LFC?
>
>
>


-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to