Why not add another property in dataProvider, which holds the reference of the rootNode. Which you can set/reset from ComboBox selection.

So your thumbnails don't have to communicate directly to main application. It would introduce more de-coupling.

So create a variable (rootURL) in main application. When you create dataProvider for TileList, pass this variable to thumbnails via dataProvider.

From combo-box selection, you can set the value rootURL to selection.

-abdul



On 8/26/06, qnotemedia <[EMAIL PROTECTED]> wrote:

I'm currently learning how to utilize components.

In a slideshow app, I have a thumbnail component (image) that is
rendered by a TileList in the main application. dataProvider in the
TileList is being used to supply the path, image name, etc, by sending
a repeating node of an xml file. However, I'd like the thumbnail
component to also be able to read a property of a "selected" parent
node (via a ComboBox in the main application) of the data its receiving.

Can I make a bound variable in the main application dynmaically
accessible by the component?

The xml is basically laid out as root(i.e. URL to root).album(i.e.
folder name).image(i.e. filename), and any time I render an image, I'm
recollecting the various nodes to produce an absolute URL to the image.

Hope that makes sense...still learning my Flex2 terminology.
- Chris


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to