I attached the codepen I would like to make into a function. I am trying to turn targets, overlapThreshold and boxes into function arguments. When try to put a symbol into a variable it comes up empty. I have been working on a much simpler example for figuring it out.
test("extinguisherYellow", "DZ_Yellow");
function test(a, {
//alert(a);
//alert(;
var targets = sym.getSymbol(a);
var boxes = sym.getSymbol(;
//alert(targets);
//alert(boxes);
targets.deleteSymbol();
boxes.deleteSymbol();
}
I know this is a stupid issue, it's been a while since I have touched JS (been in MS Access last few months . Would one of you help me remember how to set this up so I can stop feeling dumb.
Thank you.