For set a object
type coming form a webservice we've created in Flex 1.5 a objectToClass
function:
public static
function objectToClass(obj:Object,
constructorFunction:Function):Void
{
obj.__proto__ = constructorFunction.prototype;
constructorFunction.apply(obj, []);
}
{
obj.__proto__ = constructorFunction.prototype;
constructorFunction.apply(obj, []);
}
The function call
shows like that:
objectToClass(this.Customer,
project.vo.Customer);
In this way we can
always check if the object Customer is from type Customer.
Is there in Flex 2
a way to do it similar? Have any one an idea?
Thanks a lot,
Artur
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

