i’m kind of an actionscript noob
does this make any sense?
i’m trying to define a variable based on whether or not another variable is null.
(i created this example for the sake of clarity)
var nothing:String = null;
var apples:String = "Red";
var bananas:String = "Yellow";
var blueberries:String = "Blue";
if (nothing == null) {
var fruitSalad:String = "colorless";
} else {
var fruitSalad:String = apples + bananas + blueberries;
}
trace(fruitSalad);
i keep getting this as an error:
1151: A conflict exists with definition fruitSalad in namespace internal.
any help would rock :thumb:
thanks guys | idriss