Try parentDocument.currentAC

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of David Kramer
Sent: Sunday, February 08, 2009 8:31 PM
To: [email protected]
Subject: [flexcoders] data (array collections) in main application and 
components available to each other...how?

All,

I created the DropLabel.mxml component (that is attached for reference) for my 
AIR project, so now I can drag and drop item from a Grid on to the Label of the 
List item (and not add to the list) Awesome.

Once I had that solved, I added some code to handle what I wanted to happen in 
SQLite on the drop, which works great too.

I then added a clickHandler to the Label (because it should be clickable too), 
so now it goes and gets that particular presentation (each list item is a 
presentation by the way) in SQLite and puts the results in an array collection, 
and that's great too.

However, I can't assign that array collection to another bindable variable 
(type ArrayCollection too) previously declared (and heavily used) in the main 
application file while I'm in the DropLabel.mxml component (Flex is like 
"undefined, dude").

A little help...please?  (About bubbling or sharing data between components, or 
something else that I need to understand?)

I attached the DropLabel.mxml as a .txt file for reference.

You'll see the issue in the clickHandler(); and it's probably laughably easy, 
but go easy on me.

Thank you in advance everyone.

: )

David




Reply via email to