home *** CD-ROM | disk | FTP | other *** search
- function maxChar(str, nbC)
- {
- return nbC < str.length ? str.substr(0,nbC - 2) + "..." : str;
- }
- function displayDialog()
- {
- if(_level0.algorithmInf.myMoviePath == "help")
- {
- _root.gotoAndPlay("infoHelp");
- _root._visible = true;
- }
- else
- {
- myData.targetFrame = _level0.algorithmInf.myFrame;
- myData.moviePath = _level0.algorithmInf.myMoviePath;
- myData.loadVariables(_level0.algorithmInf.myDataFile);
- _level0.algorithmInf.myCaller.freeze();
- }
- }
- function doClose()
- {
- _root.unloadMovie();
- _level0.algorithmInf.myCaller.unfreeze();
- }
- function getPictures()
- {
- myPicture = [];
- var n = 1;
- var file = myData["pict_" + n];
- var path = myData.moviePath;
- while(0 < file.length)
- {
- myPicture.push(path + file);
- n++;
- file = myData["pict_" + n];
- }
- _root.mc_btnMorePictures._visible = 2 < myPicture.length;
- if(myPicture.length == 0 && myData.targetFrame == "infoQ")
- {
- myData.targetFrame = "infoQS";
- }
- }
- function showPictures(pairNo)
- {
- var pict1 = myPicture[Number(pairNo * 2 - 2)];
- var pict2 = myPicture[Number(pairNo * 2 - 1)];
- if(0 < pict1.length)
- {
- mc_pict1.display.loadMovie(pict1,mc_pict1.display);
- }
- if(0 < pict1.length)
- {
- mc_pict2.display.loadMovie(pict2,mc_pict2.display);
- }
- mc_pict1._visible = 0 < pict1.length;
- mc_pict2._visible = 0 < pict2.length;
- }
-