To follow up.... http://osflash.org/using_a_swf_as_a_dll


-mL
http://knowledge.lapasa.net

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ian
Thomas
Sent: Tuesday, October 31, 2006 5:55 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Compiling with AS2.0 classes/packages online
...


Yes, at runtime, but not at compile-time and not in the way that
you've specified.

The closest to what you're describing, I think, is the concept of a
runtime shared library - a bunch of code that you only load when the
app is actually running (and you can potentially choose at runtime
which code to load). The equivalent to a Windows DLL.

Essentially you'd compile all the 'loaded at runtime' classes into a
seperate .swf file. This becomes your runtime shared library.

The host .swf - the file that makes use of these classes - has to be
compiled in such a way that it doesn't actually include the classes,
but still compiles correctly. There are a couple of ways to achieve
this - first is to use intrinsics (Google the 'intrinsic' keyword or
look it up on the Adobe site), the second (and my preferred way) is to
use interfaces (Look up the 'interface' keyword).

I don't immediately have time to write a more in-depth explanation,
but I hope that points you in the right direction...

Ian

On 10/31/06, Stephen Ford <[EMAIL PROTECTED]> wrote:
> Is it possible to use actionscript classes that exist only online ?
>
> i.e: instead of:
>
> import com.website.utils.*;
>
> something like:
>
> import http://www.website.com/packages/com.website.utils*;
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to