nice !
Iv wrote:
Hello Eduardo,


var list_arr:Array = [12, 34, 21, 46, 52];

.......
a++;
var search_str:String = "|"+a+"|";
var list_str:String = "|"+list_arr.join("|")+"|";

if (list_str.indexOf(search_str) == -1) {
 // do something
}



EB> given a list of numbers such as: (12, 34, 21, 46, 52 ... )

EB> what would be the best way to achieve this:

EB> a++;

EB> if ( a != 12 && a != 34 && a != 21 && a != 46 && a != 52 ... ) {
EB>       // do something
EB> }

EB> Am doing my research and trying out some solutions but i thought that in the
EB> meantime someone may have a quick ready answer for this or some good hints.

EB> thanks a lot!

EB> Eduardo
EB> _______________________________________________
EB> Flashcoders@chattyfig.figleaf.com
EB> To change your subscription options or search the archive:
EB> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

EB> Brought to you by Fig Leaf Software
EB> Premier Authorized Adobe Consulting and Training
EB> http://www.figleaf.com
EB> http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to