8 Replies
Amany Ahmed

Hi, and how are you doing?

I have a graph designed in the form of points to be pressed, it consists a
large number of points. Each group connected to each other so when I click
on a certain point in the selection state, the rest of the points return to
the normal state, for that I need to control the states with the code ..
because in the case of using the trigger every point need 45 triggers and
number of points about 270 points. If I can control by Java scripte code,
it will be easier.

Thank you any way

If you can help me, How I can control of objects state by js.

 

Walt Hamilton

You said:

Each group connected to each other so when I click
on a certain point in the selection state, the rest of the points return to the normal state.

In the first place, you shouldn't use groups. Groups do not work well with triggers or states, and certainly will greatly complicate any js code.. Create whatever you need as a single graphic object, and you will be much happier.

Secondly, if all you are wanting is for the other objects to return to normal, SL has a built-in function that does that without any triggers. Select all the objects, right-click, and choose Button set. That makes them so that only one can be selected at a time, and if another is clicked, the first one changes to Normal state. Each object needs a Selected state, but absolutely no triggers.

Math is a very strong programmer. When he says something can be coded easily, it may take even him two or three tries to get it exactly as you want it. When he says something "possibly can be done", I think it will be a difficult and time intensive task for a very good programmer.

 

Math Notermans

Thx for the compliment Walt, but in fact i am no programmer. I studied arts and design. Officially im a graphic artist, illustrator, designer and animator. Due to the fact i got involved in games and interactivity in my first job more then 30 years ago i got interested in Flash and Actionscript. And started making interactive stuff with it. From AS3 to Javascript was a small step with the demise of Flash. And when i got into e-learning...also more then 20 years ago...CBT it was back then...well all experience came together and using it as a e-learning designer and developer nowadays works out perfect. Hence my big interest in GSAP and animation in tools like Storyline.

States are somewhat difficult to trigger with Javascript. As they are quite hidden in the depths of internal Storyline code. In fact as i discovered recently states on buttons and images are completely different. They are setup differently by Articulate. However you can do some nice tricks with JS and Storyline to emulate the statebehaviour. Advantage of that is that you have complete control.

Preparing a new post now showing some of this...