home *** CD-ROM | disk | FTP | other *** search
/ Aspects of Cyprus 2 / Aspects of Cyprus.iso / pc / aoc.swf / scripts / DefineSprite_252 / frame_160 / DoAction.as
Encoding:
Text File  |  2005-12-03  |  1.0 KB  |  30 lines

  1. stop();
  2. var m_length = menuXML.childNodes.length;
  3. var i_m = 0;
  4. while(i_m < m_length)
  5. {
  6.    if(menuXML.childNodes[i_m].nodeName == "menu_1")
  7.    {
  8.       var cover_menu_item = "cover_menu_" + i_m;
  9.       var cover_menu_id = menuXML.childNodes[i_m].attributes.id;
  10.       var cover_menu_name = menuXML.childNodes[i_m].attributes.name;
  11.       var there_is_photo_gallery = menuXML.childNodes[i_m].attributes.photo_gallery;
  12.       this[cover_menu_item].no = i_m;
  13.       this[cover_menu_item].id = cover_menu_id;
  14.       this[cover_menu_item].name = cover_menu_name;
  15.       this[cover_menu_item].photo_gallery_exists = there_is_photo_gallery;
  16.       this[cover_menu_item].btn.onRelease = function()
  17.       {
  18.          _root.main_section_clicked = this._parent.no;
  19.          _root.main_section_clicked_id = this._parent.id;
  20.          _root.main_section_clicked_name = this._parent.name;
  21.          _root.photo_gallery_exists = this._parent.photo_gallery_exists;
  22.          tellTarget(this._parent._parent)
  23.          {
  24.             play();
  25.          }
  26.       };
  27.    }
  28.    i_m++;
  29. }
  30.