PDA

View Full Version : Interactivity question



aam
March 29th, 2005, 07:12 PM
I need a MC 'A' to play on stage when the site starts. When any of the 4 out of 5 MC buttons in navigation is clicked, another MC should show instead of MC 'A' on the stage. Only when 1 MC button is clicked anything other than MC 'A' should disappear and MC 'A' should play. I wat to achieve this and trying to figure out how to best do this.

Any suggestions?

frost_oni
March 29th, 2005, 07:17 PM
wow. that is confusing. anywhere on the internet where this was done? or could you re-explain?

.soulty
March 29th, 2005, 07:17 PM
if the mc's are external files for say content for a website.. then this will help

http://www.kirupa.com/developer/mx2004/transitions.htm

otherwise, you might have to explain a little better.

aam
March 29th, 2005, 08:15 PM
Sorry for the confusing explanation. the Mcs are internal and I'm just trying to figure out how to replace mc's on stage when navigation buttons are clicked. The first mc 'A' that is seen without clicking anything is one from one fo the nav buttons. The other buttons when they are clicked should show thier own mc's.

Hope this makes it clearer.

.soulty
March 29th, 2005, 08:31 PM
i would think using external movies would be easier for this, since all you have to do to replace the external movie is replace the swf in the container that holds the external movie in your main movie... in any case for what you want to do , i would try having all the 4 the mc's on the stage then on each individual button "hide" the other mc's and show the one you want..

so something like



button2.onMouseOut = function(){

mc2._visible = true;
mc3._visible = false;
mc4._visible = false;
mc5._visible = false;
mc1._visible = false;

// i would put a stop in each movie then a label start so you can activate the movie when you want.
mc2.gotoAndPlay("start");


then on your main timeline to get the first one showing


mc1._visible = true;
mc2._visible = false;
mc3._visible = false;
mc4._visible = false;
mc5._visible = false;

mc1.gotoAndPlay("start");


well its not the most efficient code. but it would work. you could make a array to handle the true or false value of the mc or you could simply use external movies.

aam
March 29th, 2005, 09:00 PM
I'll try this and I'm even considering the external swf option.... It seems quite appropriate. Will let you know if I get stuck somewhere.

Thanks much

dayglowdave
March 29th, 2005, 10:28 PM
or you could dynamically attach and remove them programmatically, when called for could you not?

attachMovieClip();

removeMovieClip();

.soulty
March 29th, 2005, 10:32 PM
yeah that sounds like a easier way, lol.