Forum Discussion
ZsoltOlah
11 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
6 years agoCommunity Member
Although by using the above to change an image, you can somewhat simulate state-changes, its too much trouble as is. You have to detect what images are published in SL's mobile folder... for that you need some php or other server side script. Then you can use the detected file-names to simulate state-changes and replace any given image's src. The biggest issue remains that in complex SL-files you will be clueless what filename belongs to which element in Storyline
So reusing state-images that way is too complicated.
However its easy enough to build some state-behaviour from scratch.
Import images you want to use and write code for any behaviour you need.
Will be creating a sample to show some basics for that..
Related Content
- 6 months ago