Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help implementing a progress bar

Status
Not open for further replies.

scottjo1

MIS
Oct 7, 2003
5
US
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 &quot;next&quot; 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
 
Are you loading your different external .swfs (not .flas!) in empty container clips?
If so your references to _root is most probably the problem.
You should be using this and/or _parent.

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top