[swfmill] Implement "class stubs" in swfmill, what would be the best way to go about it?
armencho at gmail.com
armencho at gmail.com
Sat Nov 7 05:44:26 PST 2009
That only works for movie clips, and also I am not sure it works at
all for SWFs destined for the newer AVM2. Can anybody shed a light on
this? Is the class attribute only valid for MovieClip's and does it
guarantee actual class generation?
I have not used MovieClips in years :-) Thing is, in AVM2 any asset is
a subclass of its respective type - a Font, or a Sound or a
BitmapData. This is how you work with the assets - through
instantiating objects of the subclass linked to the asset.
The documentation you referred to is quite old and not very relevant
anymore. MTASC for example only works for SWF version 8 and below,
i.e. for AVM1.
On Sat, Nov 7, 2009 at 12:47, Richard Humphreys
<r_j_humphreys at yahoo.co.uk> wrote:
> I am a comlplete novice here, but my understanding was that there was
> already a class attribute. Of course I cannot make it actually work...
>
> I am referring to 'Assigning a Class to a MovieClip' on
>
> http://osflash.org/doku.php?id=swfmill
>
> Perhaps you could tweak this so that it works as required? Or will that
> break something else?
>
> R.
>
> ________________________________
> From: "armencho at gmail.com" <armencho at gmail.com>
> To: swfmill at osflash.org
> Sent: Sat, 7 November, 2009 11:17:13
> Subject: [swfmill] Implement "class stubs" in swfmill, what would be the
> best way to go about it?
>
> I have a free weekend, and I could do some developing.
>
> In light of my previous messages, on "runtime asset loading", I am
> considering to put my fingers where my mouth is. Can't promise good
> results fast, in fact can't promise anything, but if I were to start
> hacking, what do you people think is the right way to do this?
>
> My idea is to add a "class" attribute to some tags of the simple
> dialect, which will have swfmill generate class stubs for the asset.
> In some cases the "class" attribute is the only thing you need, no
> need for "id" or "name".
>
> F.e.
>
> <bitmap class="my.package.MyBitmapData" import="path/to/mybitmap.png" />
>
> Similiar for other types of assets like fonts, sounds etc.
>
> Am I making any sense here?
>
> _______________________________________________
> swfmill mailing list
> swfmill at osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>
>
> _______________________________________________
> swfmill mailing list
> swfmill at osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>
>
More information about the swfmill
mailing list