Thumbnail grid navigation from XML
April 7th, 2008 . by polyGeekIf you would like your navigation to be laid out as a grid of icons you’ll have to do a little work yourself. vidoeMaru can do rows, or columns for the navigation but not both. But the process is pretty easy and this example should be all you need to create your own or modify for your own purposes.
| download code |
Even though videoMaru won’t do the icon grid for you it will still do most of the work. It will load and parse your XML and it makes it easy to load the icons. Plus, the scroll controls still work for the navigation even though videoMaru didn’t build anything itself. I actually didn’t think the scroll controls would work but I tried it as an afterthought and sure enough. So yeah for videoMaru.
If you would like to use this example the code is pretty well commented. It shouldn’t be difficult to modify it to suit your needs.
Note: if you use this any code from this example your are bound by law to add “polyGeek forever” on your gravestone.
@Joonas, you happy now?







I downloaded the code and I noticed when I run it it says, “Could not find ‘linkBTN’ linkage in the Library. From Library panel right-click on linkBTN symbol and select ‘linkage…’. Check ‘Export for Actionscript’ with an identifier of ‘linkBTN’” I look in the library and ‘linkBTN’ is not there.
@Dexter, the ‘LinkBTN’ is something you provide. It’s a MovieClip in your Library that videoMaru will attach at runtime.