Hi Richard,

2009/10/30 Richard Humphreys <r_j_humphr...@yahoo.co.uk>:
> I have been playing with swfmill for a couple of hours but have so far
> failed to accomplish the most basic task: associating a clip with an as3
> class.
>
> Based on the documentation which I have been able to find (which almost
> completely seems to refer to haxe)

I’m aware that the available documentation isn’t great. Sorry about
that. Improvements are in the pipeline but swfmill went largely
unmaintained for a long while and these things take time. In the
meantime the best source of documentation is this mailing list --
either by asking questions or searching the archives.


> I have successfully compiled a swf with
> an embedded SVG. I have also separately compiled a very simple class with
> as3compile. However the I am at a loss as to how to get swfmill to recognise
> this as the controlling class for the clip.

For Flash 9+, you just need to set the id attribute of the clip to the
full name of the controlling class (including the package name) -- but
check you are using a recent unofficial build of swfmill. The ones on
swfmill.org are rather old and predate my maintainership. A new
release is planned imminently but again, these things take time.

There are recent Windows builds here:
http://www.danielcassidy.me.uk/swfmill

or you can check out the latest code from Launchpad and build it yourself:
https://launchpad.net/~djcsdy/swfmill/trunk


> Are there any example projects
> available which demonstrate combining swfmill with as3compile (or mxmlc),
> rather than haxe?

Not that I know of. But, when compiling to Flash 9+, the process of
associating clips with classes is the same for haxe as for as3compile
or mxmlc. I think the problem is that the existing tutorials and
examples tend to target Flash 8, which uses a different mechanism.

Hope this helps,
Dan.

_______________________________________________
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to