home *** CD-ROM | disk | FTP | other *** search
/ Organic Chemistry (8th Edition) / Image.iso / pc / organic / media / content / book_flash.swf / scripts / frame_5 / DoAction.as
Encoding:
Text File  |  2003-05-14  |  1.0 KB  |  42 lines

  1. function onLoadXMLrm(succ)
  2. {
  3.    aaa = "myXML Loaded";
  4.    myXML = myXML.firstChild;
  5.    preloading.gotoAndPlay(2);
  6. }
  7. stop();
  8. if(mode == "rm")
  9. {
  10.    ListChaptersArray = new Array();
  11.    ListChaptersArray[1] = "All Chapters";
  12.    ListSectionsArray = new Array();
  13.    ListItemsArray = new Array();
  14.    ListAttributesIDArray = new Array();
  15.    ListAttributesTYPEArray = new Array();
  16.    ListAttributesPAGEArray = new Array();
  17.    ListDescriptionArray = new Array();
  18.    AttributesListIDArray = new Array();
  19.    AttributesListTYPEArray = new Array();
  20.    AttributesListPAGEArray = new Array();
  21.    DescriptionListArray = new Array();
  22. }
  23. else
  24. {
  25.    AttributesListIDArray = new Array();
  26.    AttributesListTYPEArray = new Array();
  27.    AttributesListPAGEArray = new Array();
  28.    DescriptionListArray = new Array();
  29.    ItemsListArray = new Array();
  30. }
  31. XML.prototype.ignoreWhite = true;
  32. if(mode == "rm")
  33. {
  34.    myXML = new XML();
  35.    myXML.onLoad = onLoadXMLrm;
  36.    myXML.load(filexml);
  37. }
  38. else
  39. {
  40.    preloading.gotoAndPlay("step2");
  41. }
  42.