Advanced Flash Components
Search!
Search!
Home >  Knowledge Base >  FLV List Gallery >  Start from the list view?
Start from the list view?
Date: May 9, 2007   Views: 1393  
Question:
Can this component show the list first then play the video then automatically go back to the list? The way it is set up now would be confusing to people because they wouldn't know to press the list button.
Answer:

andreit (Admin)
There is no set method for starting from the list view but luckily it can be done with a few lines of code.

Example

var lsnr:Object = new Object();
lsnr.ready = function (evnt:Object){
    evnt.target.tab1.selected = true;
    evnt.target.selectTab(evnt.target.tab1);
}
myGallery.addEventListener("ready", lsnr)