Hey gang, I’m creating a scene where lines are drawn dynamically between moveable dots:
In the attached example, I have object AB (the line from A to B) and BC (the line sitting on its ass below). Everything works fine, except I’m going to have multiple lines and multiple dots, and I’d prefer not to create a separate function for BC (and CD and DE, etc). Is there a way to call a js function and provide variables, ie, “Call ConnectDots when I drag B and drive AB and BC, but not CD”?
if you want to place the code in the head you’ve got to register an event to be run after the e.G. -> HypeDocumentLoad event has occurred … and attach a function …
Ha! Ok, I’m guessing we have a translation error, or else I’ve missed something so obvious. Let’s hope the first condition. You imply that the function call could be placed in places other than the Head. I tried as Inner HTML:
That was actually my link to you. The example I submitted (see the first example, not the second) sets the position, size, and angle of the line AB based on the calculation of the 2 circles as you move them.
Ah, well, that line is a way to grab whatever value is in variable DistanceAB and print it out in the element with the AB id. Its just another way of setting something other than setelementbyid. Perhaps its not as pertinent as i thought