I know how to make a state. My problem is not to define a state, but to program an object defined in a timeline. In this case, I want to control the object with javascript. I want to change the color of a textbox randomly.
I'm sending you a demo in attachment. In this demo, I have 7 fields with 7 numbers defined in binary. Each new number created should have a new color, randomly. I think a can't do that with state.
My question is: Is it possible to program an object defined in a timeline in javascript?
In the same time, why this demo doesn't work in HTML5???
3 Replies
There is no need to use Javascript for that. You can create custom states for an object, style the states as needed and then use triggers to display these states as needed. Here is some info on working with states: https://community.articulate.com/series/5/articles/adding-and-editing-states
Hi Denis,
In addition to what Michael shared, I also like this article on the definition of built in states and how they'll work.
Hi Michael,
Thank you for your fast answer.
I know how to make a state. My problem is not to define a state, but to program an object defined in a timeline. In this case, I want to control the object with javascript. I want to change the color of a textbox randomly.
I'm sending you a demo in attachment. In this demo, I have 7 fields with 7 numbers defined in binary. Each new number created should have a new color, randomly. I think a can't do that with state.
My question is: Is it possible to program an object defined in a timeline in javascript?
In the same time, why this demo doesn't work in HTML5???
Thank you again.
Denis Gareau
PS: Sorry for my english.
This discussion is closed. You can start a new discussion or contact Articulate Support.