Select to view content in your preferred language

How to reference adjacent components?

730
0
04-12-2011 12:50 PM
AndrewBlakey1
Emerging Contributor
I feel like this is a very very rookie question, but I hope someone will still assist. (My knowledge of MXML/AS is all swiss cheese-like)


Say I have two custom mxml components, both sitting side-by-side in index.mxml. One of them is a row of buttons and the other is a Panel with a whole bunch of stuff in it.

I want one of the buttons to control that panel being visible or not, but I'm not sure how to make that happen. I CAN do this if I simply sit the buttons inside index.mxml, because then I can refer to the component's ID, but I don't want to do this (gets very messy).

Here's a quick graphic that may or may not help explain my situation: http://i.imgur.com/IO7j2.png

I should note: this is in the context of the index.mxml containing the map frames and graphics layer.  The panel component hosts a number of things including a locator and a query task.  I feel kind of bad asking such a basic question that isn't explicitly about the API, but I'm a bit short on knowledge of other appropriate forums. Any suggestions on that would be greatly appreciated.

Thanks!
Tags (2)
0 Kudos
0 Replies