all groups > macromedia flash sitedesign > july 2004 >
You're in the

macromedia flash sitedesign

group:

Menu Rollout


Menu Rollout Nim Chimpsky
7/14/2004 10:44:19 PM
macromedia flash sitedesign:
Dear Friends,

I have a menu... the idea is like www.vw.ca .. my fla file is at
http://www.jagersma.ca/Flash/website1.fla .

My problem is that my menu rollout conflicts with my next menu... is there a
simple way to solve this problem... I'm not very good with AS and I received
one idea that involves the following AS, but I don't really now AS well enough
to use it.. so unless someone could explain the code to me, the part I don't
understand is saving variables... or suggest an easier way.

Thanks

Wietse

PS Here is the AS code kindly suggested by another uses.

yourButtonA = new Array(vb, tb, sb, t, e, cb);
// finish making all your movieclip buttons and give them appropriate instance
names. either using the names in the above array or
// using names of your choice that you insert into the above array.
// make sure all you movieclip buttons have keyframes normal, over and out.
//
for (i=0; i<yourButtonA.length; i++) {
yourButtonA.ivar = i;
yourButtonA.learn.onPress = function() {
// fill this in
};
yourButtonA.build.onPress = function() {
// fill this in
};
yourButtonA.media.onPress = function() {
// fill this in
};
yourButtonA.onRollOut = function() {
this.gotoAndPlay("out");
};
yourButtonA.onRollOver = function() {
this.gotoAndPlay("over");
for (j=0; j<yourButtonA.length; j++) {
if (j != this.ivar) {
yourButtonA[j].gotoAndStop("normal");
}
}
};
}

Re: Menu Rollout Sprnv4
7/15/2004 3:52:33 AM
Recoded it a bit... dunno if it helps... if you switch really fast! then
there is a problem.. I gues that would be the build-up of your MC's.. I made
such menu's before and they ran smoothly.. although they where a bit
diferent.. but yours runs good now.. probably you wanted it .. exactly as the
one on the site.. then.. you'll have to put more AS into it.. probably check a
tutorial or so... http://http://62.197.132.127/website1.fla
Re: Menu Rollout Nim Chimpsky
7/15/2004 4:47:57 AM
couldn't open your file, i guess the server was off. but let me know when it is online, and i'll download it and have a look... thanks a lot... wietse
Re: Menu Rollout Sprnv4
7/15/2004 12:02:20 PM
Sorry.. the link was misspelled... here..http://62.197.132.127/website1.fla

AddThis Social Bookmark Button