I`m trying to do a dymanic menu like the tutorial "Very Higly Dymanic Menu" in FlashKit. But it is writte in Flash 4 and when I try to in Flash 5 nothing works.
I do this :
TotalRubs = "7";
RubHeight = getProperty ("Rub", _height);
LabelRub1 = "I";
LabelRub2 = "am";
LabelRub3 = "learning";
LabelRub4 = "to";
LabelRub5 = "create";
LabelRub6 = "awesome";
LabelRub7 = "Menu";
//
n = 0
while (Number < Number(TotalRubs)){
n = Number+1;
duplicateMovieClip ("Rub", n, n*10);
}
if (n = 1)
YPosition = "30";
Yposition = getProperty(Number-1, _y) + RubHeight;
//setProperty ("Rub", n, _Y) = YPosition;
setProperty("Rub", _y, Number((n*1))+10))= YPosition;
set (n add ":Label", eval("LabelRub" add n));
But I can`t duplicate the buttons.
I create a button named Button Rub,
a MC named Rub and I put them in the first layer in Scene and give the name of Instance of the MC "RUB".
What is wrong?
Thanks,
I do this :
TotalRubs = "7";
RubHeight = getProperty ("Rub", _height);
LabelRub1 = "I";
LabelRub2 = "am";
LabelRub3 = "learning";
LabelRub4 = "to";
LabelRub5 = "create";
LabelRub6 = "awesome";
LabelRub7 = "Menu";
//
n = 0
while (Number < Number(TotalRubs)){
n = Number+1;
duplicateMovieClip ("Rub", n, n*10);
}
if (n = 1)
YPosition = "30";
Yposition = getProperty(Number-1, _y) + RubHeight;
//setProperty ("Rub", n, _Y) = YPosition;
setProperty("Rub", _y, Number((n*1))+10))= YPosition;
set (n add ":Label", eval("LabelRub" add n));
But I can`t duplicate the buttons.
I create a button named Button Rub,
a MC named Rub and I put them in the first layer in Scene and give the name of Instance of the MC "RUB".
What is wrong?
Thanks,