On Tue, Sep 26, 2006 at 01:11:20PM +1000, Chris Velevitch wrote:
> On 9/21/06, David Holroyd <[EMAIL PROTECTED]> wrote:
> >Has anyone done work on generating AS classes from a schema, or seen
> >such a tool?
> 
> What are you using to generate the XMLSchema and why do you want to
> generate AS classes from the XMLSchema? Just curious.

The specific example in front of me is that we are creating a flash app
for a client that actually needs to talk to a backend system to be built
by another supplier.

My experience is that whenever you work with a third party, you'd better
be sure you have an *iron clad* spec that both parties will work towards,
so that more-or-less any unexpected changes must be first and formost
reflected by a change to that spec.

For this project, the spec will be in the form of a hand-crafted XML
Schema, which we'll be producing.

By deriving ActionScript VOs etc. directly from the schema, we might
save a tiny bit of coding time, but vastly more beneficial is that if
the spec is changed (and the VOs etc. are regenerated as part of the
build), lots of AS code that no longer matches the altered spec will not
even compile any more.

It's kinda like extending static type-checking accross system boundries.


ta,
dave

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to