Upvote 1

Listen for event (no specific object)

Answered Adam Diestelkamp 7 years ago

I would like the ability to listen for a change in something and execute an action without tying that event to a specific object/item on the screen, is that possible?


For instance, I might want to set a variable when a data master reaches a certain count. The only way I know how to do that is to select some arbitrary object and tie that variable change to it even though the object itself doesn't have anything to do with it. I suppose I could create a blank rectangle and just add all my "listening" events there as a work around, but it would be nice to have a place to put conditional functions that don't need to be tied to a specific object, but just listen for changes.

Replies (3)
photo
1

Hi Adam,


The best way to do that is to apply them to the base page of the screen (icon that looks like a little monitor/phone). They will be tied to the page itself and no element in particular.


Best,

Danielle

photo
1

Great, I didn't know I could do that, that makes more sense than creating a invisible object and applying it to them.


As an extension of this question, I like that I can listen for a variable and such, and I really like the conditional pieces (when x-objects width > 400px) however, I would like to be able to use those conditional statements without tying it to one of the listed events (click, mouse-over, variable change etc.) and just simply listen for (when data-master count is > 1) what's the best way to replicate that functionality?


Thanks!

photo
1

Hi Adam,


Unfortunately it's not possible to copy just the condition and not the event it's tied to right now. However, I have sent this idea to our development team, and we'll work on implementing it.

Leave a Comment
 
Attach a file