Do you need A class objects (ie ones w/o the C property) in your app? If not just add the C property to the A class. It should still be converted correctly.
If you still need the A class, add an exportAsB method to create a B class equivelent. --- In [email protected], "bnsmeets" <bensme...@...> wrote: > > Hi all, > > I'm wondering if it is possible to 'hack' some sort of downcasting into AS3. > The context is, that I am using a generated webservice proxy from Flex 3, and > want to be able to add custom (extra) properties to the generated > valueobjects without having to adjust the code that parses the wsdl result > into objects. > > So e.g. the webservice generates the class: > > class A > { > property A; > property B; > } > > I have my own class that is: > > class B extends A > { > property C; > } > > When i call the generated webservice "get all A's", it will return an array > of "A" objects, what I am looking for is to convert that list into "B" > objects. So the values of the properties that exist in the "A" counterpart, > filled for a new "B" instance, with an empty "C" property. > > Any ideas? > > Cheers, > > Ben >

