Is this Flex 1.5 you’re talking about?  Check out __resolve: http://livedocs.macromedia.com/flex/15/flex_docs_en/00001622.htm and it should get you on your way.

 

Matt


From: [email protected] [mailto:[email protected]] On Behalf Of jruud68
Sent: Friday, November 18, 2005 10:56 AM
To: [email protected]
Subject: [flexcoders] Defining default value for missing dynamic properties (doesNotUnderstand:)?

 

For a dynamic object 'MyObject', does actionscript support returning a
default value for missing properties? For example, I'd like:
MyObject.MissingProperty to return "there is no such property", if
MissingProperty has not been added to MyObject.

(This would be similar to implementing a 'doesNotUndertand:' method,
that would be invoked if the property is missing, in Smalltalk)

Thanks, John






--
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




Reply via email to