jefargrafx
Instructor
okay this works
this.onEnterFrame = function () {
Number(this.BG=(Number(this.BG10)+Number(this.BG01)+Number(this.BG02)+Number(this.BG03)+Number(this.BG04)+Number(this.BG05)+Number(this.BG06)+Number(this.BG07)+Number(this.BG08)+Number(this.BG09)));
}
however I don't have a clue on how to only add a number if a field meets a criteria?
if (this.BG01 <= 10) {
then add it
} else {
not
}
anyone ever do this before?
jef
this.onEnterFrame = function () {
Number(this.BG=(Number(this.BG10)+Number(this.BG01)+Number(this.BG02)+Number(this.BG03)+Number(this.BG04)+Number(this.BG05)+Number(this.BG06)+Number(this.BG07)+Number(this.BG08)+Number(this.BG09)));
}
however I don't have a clue on how to only add a number if a field meets a criteria?
if (this.BG01 <= 10) {
then add it
} else {
not
}
anyone ever do this before?
jef