Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Menu - HELP!!!

Status
Not open for further replies.

amecari

Technical User
Mar 21, 2001
29
BR
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(n) < Number(TotalRubs)){
n = Number(n)+1;
duplicateMovieClip (&quot;Rub&quot;, n, n*10);
}
if (n = 1)
YPosition = &quot;30&quot;;
Yposition = getProperty(Number(n)-1, _y) + RubHeight;
//setProperty (&quot;Rub&quot;, n, _Y) = YPosition;
setProperty(&quot;Rub&quot;, _y, Number((n*1))+10))= YPosition;
set (n add &quot;:Label&quot;, eval(&quot;LabelRub&quot; 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 &quot;RUB&quot;.
What is wrong?

Thanks,

 
When you try to import a Flash 5 .fla in Flash 4... It won't work. But the reverse will! Flash 5 will automatically convert it!
Just did it with your above link... And that example works fine from Flash 5. Did you open the downloaded .fla in Flash 5? Or did you retype it in? If so you may have typos or syntax errors!

;-)
 
I don´t have a .fla , only a .swf. I´m tried to type the actions. Yes , I kown there ismany mistakes, I need help.
In flash 4 the actions are :
Set Variable: &quot;TotalRubs&quot; = 7
Set Variable: &quot;RubHeight&quot; = GetProperty (&quot;Rub&quot;, _height)
Set Variable: &quot;LabelRub1&quot; = &quot;I&quot;
Set Variable: &quot;LabelRub2&quot; = &quot;am&quot;
Set Variable: &quot;LabelRub3&quot; = &quot;learning&quot;
Set Variable: &quot;LabelRub4&quot; = &quot;to&quot;
Set Variable: &quot;LabelRub5&quot; = &quot;create&quot;
Set Variable: &quot;LabelRub6&quot; = &quot;awesome&quot;
Set Variable: &quot;LabelRub7&quot; = &quot;menu&quot;
Set Variable: &quot;n&quot; = 0
Loop While (n<TotalRubs)
Set Variable: &quot;n&quot; = n+1
DuplicateMovieClip (&quot;Rub&quot;, n, n*10)
If (n=1)
Set Variable: &quot;YPosition&quot; = 30
Else
Set Variable &quot;Yposition&quot;=GetProperty (n-1, _y) + RubHeight
End If
Set Property (N, Y Position) = Yposition
Set variable: n&&quot;:Label&quot; = eval (&quot;LabelRub&quot;&n
End Loop
Set Property (&quot;Rub&quot;, Visibility)= 0

How can I type this in Flash 5 ?????
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top