Flash var/Functions

Out of context: Reply #17

  • Started
  • Last post
  • 18 Responses
  • joyride0

    OK, I think i understand what your trying to do. But still not totally sure:
    Button On Release Code:
    this.mc_NAVL1.mc_btn _about_us. onRelease = function ( ) {
    MakeLineAppearL1 ("AboutUs Pressed");
    }

    Then on the timeline where MakeLineAppearL1 exists (you might need to set the path to this function)

    function MakeLineAppearL1 ( WhichPress:Str ing) {
    doWhatever for all buttons;

    if (WhichPress = = "AboutUs Pressed") {
    do something
    }
    }

    in MakeLineAppearL1 this can be a series of if statement looking for a match or you can use the case statements either way, you're looking for the parameter set when you press the button.

    That work for ya?

View thread