I think it is a metadata issue. When Josh and Paul say that mx:Component
defines a new document within an MXML file they mean that if you have one file
that looks like this:
-------- MyContainer.mxml -----------
<mx:VBox>
<mx:List>
<mx:itemRenderer>
<mx:Component>
<view:fileActions ... />
</mx:Component>
</mx:itemRenderer>
</mx:List>
</mx:VBox>
-------- MyContainer.mxml -----------
That is the equivalent of these two files:
-------- MyContainer.mxml -----------
<mx:VBox>
<mx:List>
<mx:itemRenderer>
<MyFileActions />
</mx:itemRenderer>
</mx:List>
</mx:VBox>
-------- MyContainer.mxml -----------
-------- MyFileActions.mxml -----------
<view:fileActions ... />
-------- MyFileActions.mxml -----------
It then becomes more apparent that the mx:Metadata is in the wrong scope (in
MyContainer instead of MyFileActions). In fact, I'm not sure you can put
metadata in the inline-renderer and you may need two files anyway.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of dnk
Sent: Sunday, January 18, 2009 10:36 PM
To: [email protected]
Subject: Re: [flexcoders] flex not seeing method - update
Are there any examples anywhere?
On 18-Jan-09, at 5:14 PM, Paul Andrews wrote:
>
> Josh is probably on the ball. Also check out outerDocument:
>
> The <mx:Component> tag defines a new scope within an MXML file,
> where the
> local scope of the item renderer or item editor is defined by the
> MXML code
> block delimited by the <mx:Component> and </mx:Component> tags. To
> access
> elements outside of the local scope of the item renderer or item
> editor, you
> prefix the element name with the outerDocument keyword.
>
> Paul
> ----- Original Message -----
> From: dnk
> To: [email protected]
> Sent: Monday, January 19, 2009 12:16 AM
> Subject: Re: [flexcoders] flex not seeing method - update
>
> Tried that, and same issue.
>
> d
>
>
>
> On 18-Jan-09, at 10:54 AM, Paul Andrews wrote:
>
>> Try making the handler public..
>
>
>
------------------------------------
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups Links