Actionscript 1 - help
Actionscript 1 - help
Out of context: Reply #1
- Started
- Last post
- 3 Responses
- BZZZP0
an exceedingly dirty way to do this would be to keep a var to which you append the cat name with a sertain separator, then do
if(hypotheticalVar.indexOf(sep.n...
// show cat
}... or, you can do the same kind of dirty hack in a slightly cleaner fashion by populating a catName-named array with, say 1s - like this:
//in the beginning
var checkCat = Array();//in loop
if(checkCat[newCat]==1){
// don't show
}else{
//show
checkCat[newCat] = 1;
}not 100% on the syntax cuz i've been in PHP not AS all day.
hth