Hey everyone, i'm new to the forum so Greetings...
I am working on a flash application, it pulls in an XML database for content which also pulls in individual fla files that play in a central window with the content/dialog around it. I have made 3 files, one has the skin, one has the core actionscript in it and the third has the script that pulls in the XML file.
The PROBLEM:
I have put a progress bar on the bottom of the skin to show the progress throughout the course (they are a teaching, tutorial site), originally the older version of this app had all 3 processes in one file and took too long to load and was hard to administer, i tried using my code from the old one to work the progress bar, i do not know what i'm doing wrong, maybe someone out there could help me.... here is the code i used previously..
///////Progress Bar////
function updateProgressBar() {
if (_root.listnum<1) {
_root.listnum = 0;
} else if (_root.listnum>=_root.listnumsize) {
_root.listnum = _root.listnumsize;
}
_root.interface_mc.progress_mc._width = _root.ProgressBarWidth * (_root.listnum/_root.listnumsize);
}
the following script i put in on the "next" button script
//prog bar tmp
_root.listnum++;
_root.updateProgressBar();
the actual progress bar movie is part of the skin file, does that cause a problem or is that why this is not working? any help would be greatly appreciated
I am working on a flash application, it pulls in an XML database for content which also pulls in individual fla files that play in a central window with the content/dialog around it. I have made 3 files, one has the skin, one has the core actionscript in it and the third has the script that pulls in the XML file.
The PROBLEM:
I have put a progress bar on the bottom of the skin to show the progress throughout the course (they are a teaching, tutorial site), originally the older version of this app had all 3 processes in one file and took too long to load and was hard to administer, i tried using my code from the old one to work the progress bar, i do not know what i'm doing wrong, maybe someone out there could help me.... here is the code i used previously..
///////Progress Bar////
function updateProgressBar() {
if (_root.listnum<1) {
_root.listnum = 0;
} else if (_root.listnum>=_root.listnumsize) {
_root.listnum = _root.listnumsize;
}
_root.interface_mc.progress_mc._width = _root.ProgressBarWidth * (_root.listnum/_root.listnumsize);
}
the following script i put in on the "next" button script
//prog bar tmp
_root.listnum++;
_root.updateProgressBar();
the actual progress bar movie is part of the skin file, does that cause a problem or is that why this is not working? any help would be greatly appreciated