Let me clear this up guys! He wants to make a call to the following function but of course it's not gonna be straight forward ![]()
So, @iaeon there are ways you can do this. In fact many ways but for clarity's sake I'll show you this approach.
Store your function in a variable: (This is a New Function on Scene Load)
window.myFunction = function (text) {
hypeDocument.getElementById('rectangle').innerHTML = text;
}
Now in another New Function ... which we use on say a mouse click we can reference the variable like a function.
myFunction("<h1>Hello</h1>");
###Example:
callingFunctions.hype.zip (14.0 KB)