video.Maru
by polyGeek polyGeek logo



 

Thumbnail grid navigation from XML

April 7th, 2008 . by polyGeek

If 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?

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Technorati
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon

7 Responses to “Thumbnail grid navigation from XML”

  1. comment number 1 by: Dexter

    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.

  2. comment number 2 by: polyGeek

    @Dexter, the ‘LinkBTN’ is something you provide. It’s a MovieClip in your Library that videoMaru will attach at runtime.

  3. comment number 3 by: joonasjoonas

    how about adding captions to all of these videos in the grid? Is that possible?

  4. comment number 4 by: joonasjoonas

    and ofcourse it works… I just had some problems with my xml file…

  5. comment number 5 by: ketan

    Hi , I want to scroll the xml data like in your example, not a movieclip………how is this achieved…?

  6. comment number 6 by: Depak

    hi.. i downloaded the source code of the videomaru video player in .fla format! this is great..

    Everything is working fine with the pre recorded videos by giving the path such as rtmp://localhost/vod/sample.flv.

    I have flash media server hosted…

    But am trying to play the live streaming captured from my webcam or tvtuner. so that I gave the rtmp url as “rtmp:localhost/live/livestream” But it is not playing..

    The myVideo.isLive = true; syntax is not found in ur source code it seems… I think this is also the reason for not playing the live streaming videos!!!!

    but i dont know how far its true..

    but i created my own flv player by draging flv playback in flv component and i created a new layer and feeded that islive=true syntax. and i entered the rtmp url. Live streaming is working fine..

    Help me related this issue! tel me y your player is not compatible with the live streaming

  7. comment number 7 by: polyGeek

    @Depak, I don’t think videoMaru will work with live streaming. I had never messed with live streaming before when I was creating videoMaru. And honestly, it never crossed my mind that so many people would use it and for so many different purposes.

Leave a Reply

Name

Mail (never published)

Website