1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| // RELEASE
for (i=1; i<=num_pic; i++) {
this["item"+i].onRelease = function() {
if (_root.numGallery !== this.numGallery and _root.animation == 1) {
_root.animation = 0;
_parent["item"+_root.numGallery].gotoAndPlay("s2");
_root.menu["item"+_root.link_prev].gotoAndPlay("s2");
_root.menu2["item"+_root.link_prev].gotoAndPlay("s2");
_root.link = this.link_num;
_root.link_prev = this.link_num;
_root.part = _root.nodXML.childNodes[(_root.link-1)].childNodes[this.numGallery].attributes.name;
_root.numGallery = this.numGallery;
_root.numGallery_prev = this.numGallery;
_root.play();
}
};
} |