Idea

Julio R avatar image
1 Like"
Julio R suggested Julio R commented

Wait for event listen to labels or Global Variables

Hello,

Recently I have been doing processFlow logics where I need to stop a token until a label in an object or a global variable reach certain value. I accomplish this through a very inefficient way by doing a loop that every few seconds looks at the value, but this is slow and not precise enough for many applications.

Is there a way of listening to these similar to how we can wait for a content change in an object inside a wait for event?

If there isn´t it would be nice to have this in future versions.

Thank you.

labelswait for eventglobal variables
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Comment

·
Roi Sánchez avatar image
2 Likes"
Roi Sánchez commented

Hi @Julio R, you can listen to changes in labels if they were created as tracked variables. You can do these both in objects and tokens.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Julio R avatar image Julio R commented ·

Hello @Roi Sánchez,

I actually was trying to do this on a label inside an item. I just did it but it's not as easy or fast as I would like. I hope someone has a better method.

First, I need to create a Traked value Lablel on the item class inside of the FlowItem Bin, since I don't know how to do it dynamically without Flexscript (and honestly I haven never set up a Tracked variable dynamically jet).

Then I need to create a WaitForEvent and in the Object field write the reference to the item (token.item).

Then for the Event field I need to open the flowitemClass tree and go to labels and select with the sampler the OnChange, since writing it won't do it. Maybe there is an easier way, I haven't found it.

Then you can use all the options for the on change event, wich are powerful and very easy to use.

Thank you!

0 Likes 0 ·

Write a Comment

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.