Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : MovieClips and buttons problems



jeroele
3/28/2004 8:08:53 PM
Ok, I have two MovieClips at the same scene, and each one has a series of
buttons, I would like each button to control the visibility of the other
MovieClip, I mean, if we have a movieclip for Company profile and another
Movieclip for Services, when I click on one of the Services buttons and have
the Company profile loaded, want the Company profile to get unvisible and the
Services Visible, and when I have the Services Loaded and click at Comp. Prof.
want Services to get unvisible and the CP visible.

How the hell can I do that?
pls

J

rezdog440
3/28/2004 10:45:48 PM
make surethat both of the movieclips have instance names (such as "company_mc"
and "services_mc" then apply a code similar to the sample below onto the
corresponding button.

For instance for company profile button- you want the cp_mc to be completely
visible, and the services to become
invisible:

on(release){
company_mc._alpha=100;
services_mc._alpha=0;
}

You just reverse the alpha values for the other button.

hope this helps
AddThis Social Bookmark Button