Actionscript question

Out of context: Reply #8

  • Started
  • Last post
  • 8 Responses
  • PonyBoy0

    I just did something exactly like this for this website: http://www.stonecanyon.com...

    The nav at the bottom - the mountains react w/the actual amount of buttons that are input into the sub-nav... if there are 5 buttons in the sub-nav (see 'Homes & Land')... 'it's' mountain-set runs along the timeline either stopping or playing based on a simple 'if' statement:

    if (mtn_var == 3) {
    stop();
    } else {
    play();
    }

    'mtn_var' is a variable that the main button sends to 'it's' assigned mountain animation instance. The above 'if' statement would stop the timeline if there were three buttons in the sub-nav.

    It's just some simple frame-based scripts reacting to variables (in this case, a number).

View thread