|
It’s probably because there is a
difference between fixed properties and properties added at runtime. Fixed
properties are variables, methods, or constants that you define as part of a
class definition. These are fixed in the sense that you cannot remove them or
replace them at runtime. That’s what Gordon was talking about. A dynamic class, on the other hand, allows
you to create objects that are not “sealed”, but does not allow you
to alter fixed properties. It is true that an instance of a dynamic class can
be modified at runtime, but only to the extent that you can add new properties
or modify any new properties added at runtime. In other words, even in a
dynamic class, you cannot alter a fixed property. If you want to redefine properties at
runtime, either don’t declare them as fixed properties or use prototype properties
instead of fixed properties. You can read about the prototype object in the
Advanced Topics section of Programming ActionScript 3.0, which is currently
available here: http://livedocs.macromedia.com/labs/1/flex20beta3/00001551.html Francis From: Gordon wrote: -- 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
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Re: Help on Illegal assignment to function Francis Cheng

