Thumbnail List is a navigation component that enables you to load a set of images, swf's or symbols from library, fed from an xml file, through which you can scroll with the help of scroll bars, mouse movement or mouse dragging.
Frame navigation and url openning
(2007-11-15 - views: 4992)
Q: How can I open another web page or jump to a different frame when I press a thumb?
A: The component uses an xml file to get information about the thumbnails. Each node in the xml file contains attributes that the component uses to build the list, like path to the thumbnails or description. Among those attributes, the component recognizes the "url" attribute, which is the path to another web page, and "target", which states how the new page should be opened. This way, you can create web page navigation without having to write any action script code. On the other hand, frame navigation is not built-in, so you do need to write a little code to implement it. In this case too, you'll need to specify the frame to go to for each thumbnail, by using an attribute in the xml file ("frame" for example). In order, for your clip to move to the specified frame, you should listen for the onPressThumb or onReleaseThumb events of the component and inside the event handler function, you can call one of the gotoAndStop() or gotoAndPlay() functions. You can see exactly how this is done, tn the example file attached.