actionscript - Links to control Flash Navigation -


I am trying to create a link on the page that imitates the current flash navigation and to perform the expected work Receives this, which means when you click on the link, the site shows the navigation change. The problem I am facing is that I can not understand the hierarchy because I am working from outside the navigation system.

I can change the animation on rollover and rollout, but when I click on the link, it changes from page 1 to page 2, but Navigation is still showing Page 1.

  // This is the code in the current navigation ClipEvent (load) {num = 2; _parent.t1.gotoAndStop (number); } (Rollover) {if (_root.link; & lt; & gt; number) {_parent.gotoAndPlay ("s1"); }} (Release osside, rollout) {if (_root.link  number} {_parent.gotoAndPlay ("s2"); }} On (release) {if (_root.link > gt and _root.animation == 1} {_root.animation = 0; _root.link_prev = _root.link; _parent._parent ["item" + _ root.link] .gotoAndPlay ("s2"); _root.link = num; _root.play (); }} // This is the code for my link outside of navigation // I have adjusted the rollover and rollout line, for instructions I release on a specific link is a mystery // I am not sure how to do it be adjusted. OnClipEvent (Load) {num = 2; _parent.t1.gotoAndStop (number); } (Rollover) {_root.menu.item2.gotoAndPlay ("s1"); } (Rollout) {_root.menu.item2.gotoAndPlay ("s2"); } (Release) {if (_root.link > gt and _root.animation == 1} {_root.animation = 0; _root.link_prev = _root.link; _parent._parent ["item" + _ root.link] .gotoAndPlay ("s2"); _root.link = num; _root.play (); }}  

thanks

Finally I thought it.

  onClipEvent (load) {num = 2; Change the following line from // _parent.t1. _root.menu.t1 _root.menu.t1.gotoAndStop (num) for; } (Rollover) {if (_root.link; & lt; & gt; number) {_parent.gotoAndPlay ("s1"); }} (Release osside, rollout) {if (_root.link  number} {_parent.gotoAndPlay ("s2"); }} On (release) {if (_root.link > gt and _root.animation == 1} {_root.animation = 0; _root.link_prev = _root.link; Change the following line from _root.menu _root.menu ["item" + _ root.link] .gotoAndPlay ("s2") from // _parent._parent; _root.link = num; _root.play (); // Add this line to _root.menu ["item" + num] .goto andplay ("s1"); }}  

Comments