|
Hi Brendan. When building an OO framework, there's an
endless set of decisions one has to make in trading off between accurately
representing commonality and 'is a' relationships, and keeping things
simple. We considered pushing some of the more common fields of the
cartesian series into a baseclass inserted between them and the Series base, but
opted for simplicity instead.
In this case, you could take advantage of the dynamic side
of AS3 and leave the variable untyped. When a reference is untyped (typed
as *), the compiler defers validating property references until the code is run
at runtime.
The tradeoff, of course, is that this then becomes a
dynamic reference, which sacrifices some performance. In this case...for a
dataTip function, it's probably harmless (i.e., a single dynamic access that's
not happening inside a critical loop, or being invoked simultaneously by many
components). But it's a good tradeoff to be aware of in the general
case.
Ely.
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Sent: Monday, June 26, 2006 1:04 PM To: [email protected] Subject: [flexcoders] Re: yField in specific Series types I should point out, this is easily bypassed by doing a check inside the
function for "event.hitData.element is ColumnSeries/LineSeries" and acting
accordingly, but I thought I'd see if Ely :-) had another suggestion.
On 6/26/06, Brendan
Meutzner <[EMAIL PROTECTED]> 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
|
- [flexcoders] yField in specific Series types Brendan Meutzner
- [flexcoders] Re: yField in specific Series types Brendan Meutzner
- RE: [flexcoders] Re: yField in specific Series t... Ely Greenfield
- Re: [flexcoders] Re: yField in specific Seri... Brendan Meutzner

