Zenthril
August 25th, 2002, 10:26 AM
Hi
Could someone tellme why the following script is not working?
on (release) {
var set1 = [34, 19, -7];
var set2 = [39, 34, -3];
var init = "set1["+0+"]";
var cond = "set1["+1+"]";
for (i=init; i>cond; i--) {
if (i == _root.A.Age) {
//_root.A.Age is the input field on the main stage of the movie
trace("match");
} else {
trace("no match");
}
}
}
thanks
Then
Could someone tellme why the following script is not working?
on (release) {
var set1 = [34, 19, -7];
var set2 = [39, 34, -3];
var init = "set1["+0+"]";
var cond = "set1["+1+"]";
for (i=init; i>cond; i--) {
if (i == _root.A.Age) {
//_root.A.Age is the input field on the main stage of the movie
trace("match");
} else {
trace("no match");
}
}
}
thanks
Then