using no tabs on the flv list gallery
Date: Jul 30, 2007
Views: 1427
Question:
Hi...I posted this on the forum, but thought I would ask here directly.
I am using the FLV List Gallery and I am turning off the tabs. I have installed the code to start the component with the list first, then when the user clicks on a selection, it flips over to the video player.
My question is, how can I then get the user back to the list? I would like them to be able to click on the video and return to the list, stopping the video in the process.
Is this possible? Thanks for a great component!
I am using the FLV List Gallery and I am turning off the tabs. I have installed the code to start the component with the list first, then when the user clicks on a selection, it flips over to the video player.
My question is, how can I then get the user back to the list? I would like them to be able to click on the video and return to the list, stopping the video in the process.
Is this possible? Thanks for a great component!
Answer:
| andreit (Admin) |
There are two things that you can do. Display tabs myGallery.tab = true; Add an event listener that will switch to the list view whenever the video is stopped. var eventListener = new Object(); function stopHandler(event){ myGallery.selectTab(event.target._tabs[1]); myGallery.addEventListener("playing", playHandler); } function playHandler(event){ myGallery.selectTab(event.target._tabs[0]); myGallery.removeEventListener("playing", playHandler); } myGallery.addEventListener("stopped", stopHandler); myGallery.addEventListener("playing", playHandler); |
