Results 1 to 6 of 6
Thread: Need some help with Button MC
-
March 29th, 2012, 07:07 PM #132Registered User
postsNeed some help with Button MC
I have a series of button movie clips that get highlighte in color and also with
an arrow when moused over.
I am trying
to get it to stay highlighted with arrow untill one of the other buttons is
clicked. The other buttons mouse over feature needs to work untill click, then
the previous clicked button goes back to it normal non over state.
I have attached the FLA; here is my button
code:
Frame 1 of Btn MC:
onRollOver = function () {
gotoAndPlay(5);
};
onRollOut = function () {
gotoAndPlay(1);
};
stop();
cityName_txt.textColor =
0xFFFFFF;
Frame 5 of
Btn MC:
stop();
cityName_txt.textColor = 0xFFEFBF;
Last edited by avaughn; March 30th, 2012 at 12:40 PM.
-
March 29th, 2012, 08:54 PM #232Registered User
postsjust realized the FLA I uploaded was 5.5 here it is in 4.0
-
March 30th, 2012, 12:22 AM #31,391Registered User
poststhere were a couple of issues with your file
- first, the movieclips on stage had been designated as 'button' instances in the properties panel, they need to be MCs here
- the Times font was not embedded in the Fields (i went with a device Font in the revised version)
- the textfield instance was typed as an 'input' field - needs to be a dynamic field in this case
- i've removed the code from the button instances and placed in on the main timeline, there reason is so that you can also use arrays to control the assignments to the instances
- hope this helps
-
March 30th, 2012, 05:56 AM #432Registered User
postsI did learn quite a bit from your sample, however what I am try to accomplish is;
You mouse over the city name it is highlighted in color and with arrow ( this works fine thanks)
but when one is clicked it stays higlighted with color and arrow until another one is clicked than the highlight goes away on first clicked button and the second one clicked is highlighted untill another is clicked.
The mouse over should higlight any button at anytime even if another button has been click and is currently highlighted as well.
Hope that makes sence
Again Thanks for your help CBEECH.Last edited by avaughn; March 30th, 2012 at 08:56 AM.
-
March 30th, 2012, 12:39 PM #532Registered User
postsCBEECH, thanks again for you help. I figured out how to get the functionality I was looking for. Whole thing would have been much easier in AS3 but this had to be AS2. I attached the working version. Only fitting to share my solution with board members.
-
March 30th, 2012, 06:13 PM #61,391Registered User
postsyou're welcome, and good job - you picked that up very quick - nice work

Reply With Quote
Bookmarks