Or a loop.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of Yesaya handoyo
Sent: Sunday, October 04, 2009 4:58 AM
To: [email protected]
Subject: Re: [flexcoders] alteratif of if else function

 

  

Why don't u use switch case?

On 10/4/09, cholid cholid <cholid_ridwan@ <mailto:cholid_ridwan%40yahoo.com>
yahoo.com> wrote:
> Hi all
> i want to ask something about alternatif if else function
>
> i've 100 checkbox that  the syntax
>
> if(data.d[1] == '1')
>       image1.visible = true;
>                 else
>       image1.visible = false;
> if(data.d[1] == '1')
>
>        image2.visible = true;
>
>                 else
>
>       image2.visible = false;
> and   i must writer until 100 times
>
> how to make it more simple?
> Thanks
> cholid.r
>
>
>
>
>



Reply via email to