flash help / conversion

Out of context: Reply #5

  • Started
  • Last post
  • 5 Responses
  • unfittoprint0

    I think the best way to make an inactive/active status [you don't even need to name the instance]:

    Inside the buttonMC create two frames and name them "inactive' and 'active'.

    //press event
    this.onPress = function (){
    _root.active.gotoAndStop("inacti...
    _root.active = this;
    this.gotoAndStop("active");
    }
    stop();

    You don't even have to name the instance [Flash creates an automatic name for it]. If you call directly _root.active.myVar would be the same as calling your button's variable, becuae active is a 'mirror' of it...

View thread