webForumDet fria alternativet

Variabelproblem

0 svar · 240 visningar · startad av NEOLiNES

NEOLiNESMedlem sedan okt. 200463 inlägg
#1

Jag vill att varje knapp ska animeras om värdet innehåller 1, men jag lyckas bara att alla knappar att animeras hela tiden :S

Varje "knapp" har var sitt eget "instance-namn" dvs. ico_guestbook, ico_mail osv.

Länk: http://utveckling.odibonk.se/comSTATUS/flash.asp

Kod

text_guestbook	= 1
text_mail		= 0
text_friends	= 0
text_forum		= 1

if (text_guestbook == 1) {
	ico_guestbook.gotoAndPlay(2);
}
else {
	ico_guestbook.stop();
}
if (text_mail == 1) {
	ico_mail.gotoAndPlay(2);
}
else {
	ico_mail.stop();
}
if (text_friends == 1) {
	ico_friends.gotoAndPlay(2);
}
else {
	ico_friends.stop();
}
if (text_forum == 1) {
	ico_forum.gotoAndPlay(2);
}
else {
	ico_forum.stop();
}
Genererad på 367 ms · cache AV · v20260730165559-full.f96bc7eb