Forum Discussion
No Luck Using New JavaScript Functionality in Storyline to Update Object State
Using Execute JavaScript with following code:
const radButton = object('6r0NAZwt4OW');
radButton.state = "R5";
Aware of issues with built-in states other than "Normal" and avoiding use those.
Can see in console that state value has changed from _default to R5, but the graphical state of the object is not changing to show the elements in state R5.
Has anyone else encountered this issue and resolved it?
2 Replies
- NedimCommunity Member
Cool tricks! Personally, I use a simple Storyline solution by triggering the Normal and Hidden states when either the Entrance or Exit animation is complete. To adjust the blinking speed, you can change the Fade In and Fade Out times to shorter or longer intervals, and also adjust the object's length on the timeline accordingly.
- BarMazuzCommunity Member
Nice!
You can also create it with a simple JS and one trigger instead
https://youtu.be/YZk1-g97Afk?si=eZQ378C0tINPScf0 - EmmaWilson-3acaCommunity Member
Wow, Amazing!
- PrzemyslawCzerwCommunity Member
Hi, it works perfect. Question is, how to stop it?:) Stop blinking.
- NejcZDCommunity Member
👍🏻🎉
- TeresaMorenoCommunity Member
Thank you very much for sharing, this helps me a lot!
- NejcZDCommunity Member
Happy to hear! :)
- NardaButler-62dCommunity Member
Nested toggles - cool! My backpack image now has a blinking light just like the SME wanted! Thanks.
- NejcZDCommunity Member
I am happy to hear! :)
- ChrisBurnsCommunity Member
Thank you, this is exactly what I was looking for!