Forum Discussion
ZsoltOlah
10 years agoSuper Hero
Changing state directly from JavaScript?
Hello Heroes!
Maybe someone out there can help me out! I've been playing with JavaScript and Storyline, you can see an example here: http://bit.ly/1IjNEKs.
But, what I can't figure out is how t...
MathNotermans-9
2 years agoCommunity Member
No problem Michael. A few errors in your code. You do have to register a GSAP plugin for it to work.gsap.registerPlugin(Draggable);
And the loading part of your Javascript had some errors. 'elseif' needs to be 'else if'.. and some other errors i couldnot find, so i copied a script i had thats working.
Also it also works untill the second click on the element...not sure why... ill make a perfect sample soon.
Kind regards,
Math