home *** CD-ROM | disk | FTP | other *** search
/ Enter 2003 April / EnterCD 4_2003.iso / Multimedia / AlbumCreator 2.5 / AC2.exe / a1.swf / scripts / frame_3 / DoAction.as
Encoding:
Text File  |  2002-11-25  |  1.7 KB  |  53 lines

  1. if(!doc.loaded || zz._currentframe != 1 && (!zz["d" + zz.max]._currentframe || zz["d" + zz.max]._currentframe < zz["d" + zz.max]._totalframes - 1))
  2. {
  3.    gotoAndPlay(2);
  4. }
  5. else if(zz._currentframe == 1)
  6. {
  7.    zz.gotoAndPlay(2);
  8.    var images = new Array();
  9.    section = doc.firstChild.firstChild;
  10.    while(section != null)
  11.    {
  12.       if(section.nodeType == 1)
  13.       {
  14.          if(section.nodeName.toUpperCase() == "IMAGES")
  15.          {
  16.             imSection = section.firstChild;
  17.             while(imSection != null)
  18.             {
  19.                if(imSection.nodeType == 1 && imSection.nodeName.toUpperCase() == "IMG")
  20.                {
  21.                   i = images.length;
  22.                   images[i] = new Object();
  23.                   images[i].name = imSection.attributes.name;
  24.                   images[i].src = imSection.attributes.src;
  25.                   images[i].thm = imSection.attributes.thm;
  26.                   images[i].full = imSection.attributes.full;
  27.                   images[i].desc = imSection.attributes.description;
  28.                }
  29.                imSection = imSection.nextSibling;
  30.             }
  31.          }
  32.          else if(section.nodeName.toUpperCase() == "PARAMS")
  33.          {
  34.             parSection = section.firstChild;
  35.             while(parSection != null)
  36.             {
  37.                if(parSection.nodeType == 1)
  38.                {
  39.                   set(parSection.nodeName,parSection.firstChild.nodeValue);
  40.                }
  41.                parSection = parSection.nextSibling;
  42.             }
  43.          }
  44.       }
  45.       section = section.nextSibling;
  46.    }
  47.    TXTCOLOR = "0x" + TXTCOLOR.substr(1);
  48.    var bcolor = "0x" + BKGCOLOR.substr(1);
  49.    var mycol = new Color(GroundColor);
  50.    mycol.setRGB(bcolor);
  51.    gotoAndPlay(2);
  52. }
  53.