Skip to main content
February 22, 2009
Question

Flash 8 and FMS 3.5 problem

  • February 22, 2009
  • 3 replies
  • 460 views
Hi,

I have a little Flash 8 FLVPlayback-based video player, designed to read a list of video URLs (pointing to a demo version of FMS 3.5) from XML. The player works the first couple of times you select a video but then stops displaying anything when you select more videos. The seek bar seems to move but there is not picture or sound. You can see it here:

Test player

My ActionScript is as follows:

var vidList:XML = new XML();
vidList.ignoreWhite = true;

vidList.onLoad = function() {
//populate array from XML
var videoArray:Array = this.firstChild.childNodes;
//iterate array and add videos to the listbox
for (var i = 0; i<videoArray.length; i++) {
videoList.addItem(videoArray .attributes.desc, videoArray.attributes.url);
}
//XML loaded, so play first video
myPlayer.play(videoList.getItemAt(0).data);
textUrl.text = videoList.getItemAt(0).data;
videoList.selectedIndex = 0;
};

var vidListener:Object = new Object();

vidListener.change = function() {
myPlayer.play(videoList.getItemAt(videoList.selectedIndex).data);
textUrl.text = videoList.getItemAt(videoList.selectedIndex).data;
};

videoList.addEventListener("change", vidListener);
vidList.load("videos.xml");

Can anybody help!?

Thanks!
    This topic has been closed for replies.

    3 replies

    Participating Frequently
    March 3, 2009
    Doh, I guess you're using SSAS XML object?

    But I still have a question regarding "vidList" vs. "videoList" though.
    Participating Frequently
    March 3, 2009
    I don't get it. This is all client-side AS code; it is not even hitting FMS for any of that XML data. Why would this be an FMS problem?

    Also, I notice that you are creating an XML object named vidList. But then I see you are referencing "videoList" in other places.
    February 23, 2009
    I should add that this problem is specific to the Linux version of FMS 3.5: the code above works fine with a Windows-hosted FMS install.