myCustomFormatter is a static method meant to be passed to a component. In
writing that I'd assume it was called out-of-scope--which rarely matters for
statics anyways.

(yeah, I'm making assumptions over how the component is written and how the
function is written, but aren't a few assumptions better than an
all-out-block on the functionality?)

And NDA prohibits me from remembering any discussions that may (or may not)
have taken place about different/possible/alternate implementations. :-)


Sam


> -----Original Message-----
> From: Matt Chotin [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, May 12, 2004 1:08 AM
> To: '[email protected]'
> Subject: RE: [flexcoders] Compilation error "Only functions 
> in the document are allowed"
> 
> You're right that MyComponent calls the function without 
> specifying scope, which means that "this" is going to be 
> MyComponent. However you wrote myCustomFormatter in another 
> class, and it compiled as if it was meant to run in the scope 
> of that other class (meaning "this" will be that other 
> class). Remember how many posts I wrote on the beta forum to 
> address this issue? That's what we want to avoid.
> 
> 
> 
> Matt
> 




Reply via email to