create a Task in global code

May 5, 2013 at 8:07pm

create a Task in global code

How can I get a js object to output a deferred bang every time it is reloaded?

The obvjous way doesn’t do anything.

If I create a JS object with the following code (and only the following code) in it, I expect it output the message “reloaded” out an outlet, and to post the message “FUNCTION CALL”, “reloaded” to the post window. Howener, nothing happens.


new Task(
	function() {
		post("FUNCTION CALL", "reloaded");post();
		this.outlet(0, "reloaded");
	;}, this

You must be logged in to reply to this topic.