bazmanblue
Programmer
Im trying to use this code with buttons to do a slide show in flash. I have copied it exactly the same from a tutoring dvd but comes up with the following error when clicking the previouse slide button
Error opening URL "file:///C|/Documents%20and%20Settings/barry%20%20walker/My%20Documents/myportfolio/frames/framesNaN.jpg"
and when clicking the next slide button it shows the same clip.
here is the script i am trying to use
var slideInfoLV:LoadVars = new LoadVars();
slideInfoLV.load("vars/slide_info.txt");
var curFrameNum:Number = 0;
function loadFrame() {
_level0.myMCL.loadClip("frames/frames" + curFrameNum + ".jpg", this.framesMC);
}
loadFrame();
//--------------<nextslidebutton>-------------//
this.nextSlideBtn.onRelease = function() {
if(curFrameNum < Number(slideInfoLV.totalFrames) -1) {
curFrameNum++;
} else {
curFrameNum = 0;
}
loadFrame();
}
//--------------</nextslidebutton>-------------//
//--------------<prevslidebutton>-------------//
this.prevSlideBtn.onRelease = function() {
if(curFrameNum == 0) {
curFrameNum = Number(slideInfoLV.totalFrames) - 1
} else {
curFrameNum --;
}
loadFrame();
}
//--------------</prevslidebutton>-------------//
i would be helpful for any help
thanks
baz
Error opening URL "file:///C|/Documents%20and%20Settings/barry%20%20walker/My%20Documents/myportfolio/frames/framesNaN.jpg"
and when clicking the next slide button it shows the same clip.
here is the script i am trying to use
var slideInfoLV:LoadVars = new LoadVars();
slideInfoLV.load("vars/slide_info.txt");
var curFrameNum:Number = 0;
function loadFrame() {
_level0.myMCL.loadClip("frames/frames" + curFrameNum + ".jpg", this.framesMC);
}
loadFrame();
//--------------<nextslidebutton>-------------//
this.nextSlideBtn.onRelease = function() {
if(curFrameNum < Number(slideInfoLV.totalFrames) -1) {
curFrameNum++;
} else {
curFrameNum = 0;
}
loadFrame();
}
//--------------</nextslidebutton>-------------//
//--------------<prevslidebutton>-------------//
this.prevSlideBtn.onRelease = function() {
if(curFrameNum == 0) {
curFrameNum = Number(slideInfoLV.totalFrames) - 1
} else {
curFrameNum --;
}
loadFrame();
}
//--------------</prevslidebutton>-------------//
i would be helpful for any help
thanks
baz