webForumDet fria alternativet

Variabelproblem

Flash

0 svar · 242 visningar · startad av NEOLiNES

Medlem sedan okt. 200459 inlägg
Frågan#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();
}
257 ms totalt · 4 externa anrop · v20260731065814-full.1dc6f849
126 ms — deklarationer (db)
0 ms — hämta statistik (cache)
128 ms — hämta tråd, inlägg och bilagor (db)
120 ms — ändringar (db)