Reply
zak
Contributor
zak
Posts: 37
Registered: 11-30-2009
0

videoList, is there an event & listener for when thumbnails, titles, descriptions fully load?

Our client is a little worried about the delay when the BC player initially loads and the wait for all the thumbnails, titiles, descriptions to load in the right column videoList.

 

We're thinking of adding a message or preload graphic that'll be visible until all the thumbnails, titles, etc. load. I was trying to find a way to listen for some kind of  loadComplete event for the videoList  but I haven't found one.

 

I know I can access the playList in templateReady function.

 

I tried using listeners like

 

    expModule.addEventListener("contentLoad", fncPreload);

    expModule.addEventListener(Event.COMPLETE, fncPreload);

 

In the templateLoaded function but they didn't fire when the videoList finished loading.

 

function templateLoaded(e:Event):void {
    player = bcp.getModule("videoPlayer");
    contentModule = bcp.getModule("content");
    expModule = bcp.getModule("experience");

    expModule.addEventListener("templateReady", templateReady);
    expModule.addEventListener(Event.COMPLETE, fncPreload);

}

function fncPreload():void {
   //  handle  preload event
}

function templateReady(e:Event):void {
 ...
   videoList = expModule.getElementByID("videoList");

...

}

 

 

Is there a way to listen for the complete loading of the videoList?

 

Zak