Forum Discussion
Magic JavaScript switch?
I made a JS solution for this. It's a bit long to explain here... so I made a blog post: https://blog.reviewmyelearning.com/randomizing-drag-and-drop-objects-in-storyline-using-javascript
And you play with a demo here: https://gforce.reviewmyelearning.com/course-review/671ab86f1dbcddb3bb7e9ab4
Hello James onEnterFrame . While wandering randomly through the discussions, I stumbled upon this topic, and it may well help me enormously as the question was posed to me some time ago. This impressive code you share on your blog works perfectly (randomly changed positions OK, draggable element features retained OK, drag-and-drop activity functional ok) up to a point... I've done a lot of testing with only 6 draggable elements, but after several clicks (sometimes only the second) on the “Run JS” button (to launch the function), the behavior of some draggable elements becomes erratic: dropped into the drop zone, they place themselves “elsewhere”. I have to move them again. Sometimes everything's OK, sometimes most of the elements are a bit recalcitrant. (With the draggable element option: “Return the element to the starting point...”, it's...worse.)To test, I'm sharing my very-very simple little .story file. Did I miss a setting?
I'd love to hear what you think. Thanks in advance.