A
Antoine S
Guest
Hi, I used the tutorial to create a video player with xml. I used the same instance names (videolist etc.) and have been running into trouble creating only a ON DEMAND skip button(to the next video) and back button (to the previous video). Before I ask questions, I usually try to search first and found three ways to do it but neither have worked for me.
The first way:
ffwd_btn.onRelease=function(){
if(videoList.selectedIndex >= 13){
videoList.selectedIndex = 0;
}else{
videoList.selectedIndex +=1;
}
};
The second way:
forward.onRelease=function(){
v = whoIsOn+1
if (v >= listClips.length ) {
v = 0;
}
getNewVid(listClips[v]);
};
The third way:
mySkipBtn.onRelease = function()
{
clipCounter++;
ns.play(myVidArray[clipCounter]);
}
Any help would be much appreciated,
You can go by the sample FLA from the source:
http://gotoandlearn.com/files/xml_video_playlist.zip
The first way:
ffwd_btn.onRelease=function(){
if(videoList.selectedIndex >= 13){
videoList.selectedIndex = 0;
}else{
videoList.selectedIndex +=1;
}
};
The second way:
forward.onRelease=function(){
v = whoIsOn+1
if (v >= listClips.length ) {
v = 0;
}
getNewVid(listClips[v]);
};
The third way:
mySkipBtn.onRelease = function()
{
clipCounter++;
ns.play(myVidArray[clipCounter]);
}
Any help would be much appreciated,
You can go by the sample FLA from the source:
http://gotoandlearn.com/files/xml_video_playlist.zip