One very interesting bit was in the comment about how the flex compiler
converts multi-frame flash 8 symbols into flash 9 ones. I wonder if we
could automate this to allow you to compile swf9 apps with swf8 assets. We'd
have to have something that pulled out the symbol names
from the swf file, but our Jgenerator code can still do that.

Bwillenator: The SWF actually came from the Flash 8 IDE, and this was part
> of the reason for me doing this.
>
> If you just compile in a whole Flash 8 SWF using Embed:
> [Embed(source="mysource.swf")] then the embedded resources becomes an
> AVM1Movie, which is useless if you want to access it/manipulate its frames
> or other properties.
>
> If you compile in a *symbol* from a Flash 8 SWF then it gets transformed
> into a Flash 9 symbol (all actionscript is stripped out, but all I want are
> the frames). So that's what we're doing with [Embed(source="mysource.swf",
> symbol="AnySymbol")]
>
> These lines:
> [Embed(source="mysource.swf",symbol="AnySymbol")]
> public var SomeSymbol:Class;
>
> effectively tie the variable SomeSymbol to the symbol called 'AnySymbol'
> in the original Flash 8 SWF.
>
> Yes, to add multiple symbols you'd add multiple Embeds and public members.
>

Hope that clears it up!

On Jan 25, 2008 1:33 PM, Henry Minsky <[EMAIL PROTECTED]> wrote:

> This is a very interesting post from someone about to use the flex
> compiler to extract out swf8 assets and
> turn them into embedded swf9 assets using the flex compiler, and then to
> be able to load them at runtime.
>
>
>
> http://wildwinter.blogspot.com/2007/09/how-to-load-external-assets-from-as3.html
>
> When we implement loadable libraries for swf9, we should look at using
> this to support packing
> assets  into the library and accessing them dynamically.
>
> --
> Henry Minsky
> Software Architect
> [EMAIL PROTECTED]
>
>


-- 
Henry Minsky
Software Architect
[EMAIL PROTECTED]

Reply via email to