You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fla...@googlegroups.com
I am very new to this, so bear with me. I would like to create a behaviour, that event listeners (as in good old js) can assign an integer to. This update should then propagate to the dependent behaviors.
Smth like:
x = Behavior(); x.setValue(1); y = x + 2; function listener() { x.setValue(3); // y = 5 }
I have been reading the tutorial but somehow I could not find a way of just "manually" changing the value of a behavior.
Thanks :)
Leo Meyerovich
unread,
Nov 30, 2012, 2:09:14 PM11/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fla...@googlegroups.com
Hi Thomas,
You can create an empty event stream with receiverE() and then ".sendEvent(v)" to it:
var ticksE = receiverE();
setInterval(function () { ticksE.sendEvent("tick"); }, 1000); // ticksE is now a stream of "tick" values