Comments in-line

David Kramer wrote:
I've read Amy's FAQ (Q3) and the Flex 3 Cookbook and have attempted to make the situation below work, but the solution still escapes me. After reading several other resources, I think I've read too many ways to skin a cat and now I'm in circles.

I have an ArrayCollection (currentAC) in a main application file in AIR.

(When the user clicks on categories it updates that array with a selected arrayCollection.)
I'm not sure what this means. Do you have two ArrayCollections? One w/ the full list and one with a list of "selected" items?
I have a custom item renderer for a list in the main application file.

When someone clicks an item in the list, it seems that scoping within the item renderer using either:

Application.application.currentAC  = this.itemRenderersAC;

would work to update the currentAC array, and as well it seems that

parentDocument.currentAC = this.itemRenderersAC;

would work too, but I can't make that tightly coupled situation work for some reason.

So...

I move on to the proper, loosely coupled approach with little success as well. No errors, but no currentAC update.

I tried to dispatchEvent from the itemRenderer and have it be handled by...anything, and I'm just not getting the syntax or something, and nothing needs to even be "passed" around, I just need to update an array with the itemRenderer's Array that has a known array name.
Be sure that your event is set to bubble. If you could share your itemRenderer code and/or the listener code that might help debug it.
_

--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust

Reply via email to