Im using this component for my case study.
What it is intended for is to load movies
from the selected list from the MenuBar component.
The problem is, when I try to change
the contentPath dynamically for the second time,
it doesn’t response. Instead, it displays a buffering animation.
(refer from the attachment)
Here’s my sample code:
myFLVP.contentPath = "intro.flv";
mbListener.change = function(evt_obj:Object) {
var menuItem_obj:Object = evt_obj.menuItem;
var info;
switch (menuItem_obj.attributes.instanceName) {
case "P1-A" :
info = "Db/Movies/p1/DIMM to MoBo.flv";
break;
...
case "P4-F" :
info = "Db/Movies/p1/PSU to MoBo.flv";
break;
}
myFLVP.contentPath = info;
};
edit: Changed _global.cp to info