Connect Gallery buttons rather than thumbnails?
This seems like it should be easy, but I cannot figure out how to do this in AS3. And after pouring through several books and lots of sample projects, no one quite seems to be using this method to create galleries.
The goal: A gallery with circles for buttons that, when clicked, move already loaded images into view.
I have built a widget that creates the buttons and loads the images, but how do I make a connection between one dynamically created sprite (the button) and another (the corresponding image)?
When adding children, is there a way to find its reference in the display object list? The buttons are named and will trace their names when clicked, but I don't see this when I'm listing the display objects. And I'm not sure how I can use these names or provide similar names for my loaded images. (My confusion is becoming evident here -- or at least clouding my mind -- so I'll just leave it at that.)
BTW, I have come across several tools/players that do something similar to what I want, but I'd prefer not to use someone else's controller. (It seems like the time to code this should be less than the time to skin/understand/customize someone else's FLA/SWF.)
Thanks,
Tim