Skip to main content
Known Participant
November 23, 2017
Answered

Using buttons in movie clip

  • November 23, 2017
  • 2 replies
  • 721 views

Im also having trouble, i got a list of buttons in a movie clip, and they all change colour when in the "over" state, and each have a list of other buttons that become "true" and not "false" anymore when the button in the list is rolled over.

the list of buttons include functions to turn other buttons- (selected Falses to true) to all "false" so that only the rolled over buttons selections of to become "true" are then true, found this to be the easiest due to layers, to just switch the others off on the rollover of the buttons in the list.

I want to keep the rolled over buttons state , when viewing the selected "true" buttons when the button/buttons is rolled over activating the "false"object to become "true" which is a button too, and too for them to, i want to change the state of the sub button state so that the main in the list and the (next button selected) can also change to the "over state which is only a colour change of the buttons backround.

I read and tried, abc.upState = abc.overState;

and

abc.onRollOver = function(){

abc.gotoAndPlay("over");

}

im using action script 2 and later saw that abc.upState = abc.overState; is action script 3, is this :

abc.onRollOver = function(){

abc.gotoAndPlay("over");

}

also action script 3, ?

I would like the buttons to stay in over state when rolled over, im using action script 2

PLEASE HELP

    This topic has been closed for replies.
    Correct answer kglad

    again, you can't use a button to do what you want.  use a movieclip button.

    or use as3.

    2 replies

    Known Participant
    November 23, 2017

    I created a new file created a button converted to a button but in the button editing mode was not allowed to add actions, so waiting to see if anyone can offer me a code to change the button on rollover to to over with out re drawing each part seperately or without duplicating it and changing it up appearance, in ac2.

    i know its tough i guess being a bit un educated in coding sorry but, looking for a straight forward shift in appearance .

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    November 23, 2017

    again, you can't use a button to do what you want.  use a movieclip button.

    or use as3.

    Known Participant
    November 24, 2017

    I gave it some thought, the converting to a movie clip such as a mask with a roll on and roll off is good with a note that is either on or off making the mask active always and the note triggered by the roll on or off, however gave it futher thought the press function on a mask _mc is cool if only the roll off didnt activate so thought of duplicating the mask to get the roll off function off, and using another to trigger it back on. same as what i wanted with my buttons, and to go add (a list) .gotoAnd play(1) and (a list) of not to goto and play, but to make invisible is a question i need answered for other work im attempting.

    from a movie clip , full of movie clips and buttons within each, to switch a property off/boolean off of an item not within the movie clip but still within the whole movie clip they all in.

    Known Participant
    November 23, 2017

    I dont want to duplicate a button and edit it, and bring it into "true" after being false and made true by a rollover or press or release by a button and make the button "false " so that the duplicate edited button appears making it look like the button has stayed in the "over" state. a solution would be great please.

    kglad
    Community Expert
    Community Expert
    November 23, 2017

    you need to use movieclip buttons with as2.

    Known Participant
    November 23, 2017

    I have a button that activate a movie clip, in the movie clip there are buttons a list of them, each on rollover will bring other buttons next to them up all i want to do is highlight the button that brings up the buttons next to it.