|
Before begin the movement script, we'll create a basic subrub button.
Make a simple square, select it and F8, choose button, ok. Select
it, F8, choose MC, ok. Go inside your button, move your square at
keyframe 2, fill it with white color with 50 % alpha for ex. Like
this, on roll out, it appears. Next, create a new layer, insert
a text field at keyframe 1 and name its var : Label. Yes it's the
same var name than for rubs I hear you...but this var is EXACTLY
: main/Subrub:Label and for rub it's : main/Rub:Label . Ok, return
on your main scene, double-click on the subrub MC and fill the occur
with : Subrub
Now adjust its x position regard with rub MC. y position doesn't
matter cauz we'll define it !
You should obtain that :
we need to add some constants about subrubs in our first keyframe,
insert them with the corresponding rub part :
Set Variable: "SubrubHeight" = GetProperty ("Subrub",_height)
Comment : -----------------------------------------------
Set Variable: "Total_Subrubs_Rub1" = 2
Set Variable: "LabelRub1_Subrub1" = "Subrub1"
Set Variable: "LabelRub1_Subrub2" = "Subrub2"
Comment : -----------------------------------------------
Set Variable: "Total_Subrubs_Rub2" = 3
Set Variable: "LabelRub2_Subrub1" = "Subrub1"
Set Variable: "LabelRub2_Subrub2" = "Subrub2"
Set Variable: "LabelRub2_Subrub3" = "Subrub3"
Comment : -----------------------------------------------
Set Variable: "Total_Subrubs_Rub3" = 5
Set Variable: "LabelRub3_Subrub1" = "Subrub1"
Set Variable: "LabelRub3_Subrub2" = "Subrub2"
Set Variable: "LabelRub3_Subrub3" = "Subrub3"
Set Variable: "LabelRub3_Subrub4" = "Subrub4"
Set Variable: "LabelRub3_Subrub5" = "Subrub5"
Comment : -----------------------------------------------
Set Variable: "Total_Subrubs_Rub4" = 4
Set Variable: "LabelRub4_Subrub1" = "Subrub1"
Set Variable: "LabelRub4_Subrub2" = "Subrub2"
Set Variable: "LabelRub4_Subrub3" = "Subrub3"
Set Variable: "LabelRub4_Subrub4" = "Subrub4"
Comment : -----------------------------------------------
Set Variable: "Total_Subrubs_Rub5" = 2
Set Variable: "LabelRub5_Subrub1" = "Subrub1"
Set Variable: "LabelRub5_Subrub2" = "Subrub2"
Note that I haven't set any subrubs for rub 6 and 7. To test, you
may set only 1 subrub per rub to edit more faster.
|