|
You can try binding including a Delegate if necessary. I'll file a bug and see if there's a way I can get the compiler to do the right thing. I believe the question we had at the time was this: what scope should that function execute in if it lives in another document. By forcing the function to live on the document we know the scope is going to be the document where you made the function call, so it's easy and everyone understands what's happening. But I you assign a function from outside the document, is it supposed to execute in the scope of the document where the function is defined, in the scope of your document where the component is defined, or in the scope of the component that's calling the function (a la normal behavior if you don't use a Delegate, also the most confusing for many people)? If you all have opinions let's hear them and we can look into implementing that in a future release.
Matt
-----Original Message-----
|
- RE: [flexcoders] Compilation error "Only functions in ... Matt Chotin
- RE: [flexcoders] Compilation error "Only function... Samuel R. Neff
- RE: [flexcoders] Compilation error "Only function... Matt Chotin
- RE: [flexcoders] Compilation error "Only func... Samuel R. Neff
- RE: [flexcoders] Compilation error "Only function... Matt Chotin

