Hello , i am new to JavaScript , so anyone can help me about how to get object by javascript ? Example : i create new project , put a text box - name :"Text Box 1" , but i dont know how to get "Text Box 1" and its position by JavaScript . Thanks
You can move variable back and forward using javascript you cannot interact with objects on a the slides without using variables, here are storyline best practices for javascript
Thanks Phil for sharing that here - and as you'll see Long, Javascript is not something that staff can offer support for, so you'll need to seek community assistance and guidance.
This thread is a bit older, so I'm not certain if folks are subscribed - but you may want to message a few to see if they're able to assist you with your Javascript set up as it's not something I can offer support for.
I'm sorry to see that no ones been able to pop in to assist you yet - and I can't think of a thread I've seen that included all the options or accessible variables. I know that there are a number of Javascript gurus in the community so hopefully they're able to assist here and if you are able to share any of your findings I'm sure they'll help other folks who may come across this thread.
Thanks anyway. Id really rather leverage OOP to build activities, and i need to be able to use a streaming media server for the audio and video files they will contain. Progressive download is just not a viable option for how much i rely them in the activities i build.
Sorry we couldn't be of more help Kev, but if you're able to create a method that is worth sharing here with others in the community I hope you're able to pop in.
The Wistia video service uses a progressive download, but also has a javascript API for their player, which allows quite a bit of control if you know javscript. I'm a JS novice, but was able to figure out how to automatically advance my SL slide after my Wistia video completes. See if this helps at all: http://wistia.com/doc/player-api
18 Replies
You can move variable back and forward using javascript you cannot interact with objects on a the slides without using variables, here are storyline best practices for javascript
http://www.articulate.com/support/storyline/javascript-best-practices-and-examples
Thanks Phil for sharing that here - and as you'll see Long, Javascript is not something that staff can offer support for, so you'll need to seek community assistance and guidance.
okie , i got it. Thank you
Is there a javaScript syntax equivalent to the triggers and animations?
Like:
rectangle1.setPath('pathName' speed);
rectangle1.onEndPath('pathName' function);
Thank you.
Hi Kev,
This thread is a bit older, so I'm not certain if folks are subscribed - but you may want to message a few to see if they're able to assist you with your Javascript set up as it's not something I can offer support for.
Its only a month old. How much has changed since then?
Is there someone else on staff who could answer my question about Articulate's API?
Hi Kev,
I just don't know if they're subscribed to the post and will see your reply here - not saying anything changed.
Our staff can't offer support for Javascript or modifications to the API so I'll have to defer to the community.
There is no exposed API to do this.
Sent from my iPhone
Thanks, Phil.
Is there a full list of the exposed API for SL2?
Kev
I see on the examples/best practices page that there is 'GetPlayer();'.
Where would someone get the rest of the function names that SL2 has?
ANYONE???
Hi Kev,
I'm sorry to see that no ones been able to pop in to assist you yet - and I can't think of a thread I've seen that included all the options or accessible variables. I know that there are a number of Javascript gurus in the community so hopefully they're able to assist here and if you are able to share any of your findings I'm sure they'll help other folks who may come across this thread.
The only official one is GetPlayer();
I remember a list someone posted but cannot find the link, in al honesty i think this is all there is until we get a proper API
Thanks anyway. Id really rather leverage OOP to build activities, and i need to be able to use a streaming media server for the audio and video files they will contain. Progressive download is just not a viable option for how much i rely them in the activities i build.
Sorry we couldn't be of more help Kev, but if you're able to create a method that is worth sharing here with others in the community I hope you're able to pop in.
If i do, i surely would. I only have about 100 hours experience with SL2, coming from a Flash and JS background.
Kev,
The Wistia video service uses a progressive download, but also has a javascript API for their player, which allows quite a bit of control if you know javscript. I'm a JS novice, but was able to figure out how to automatically advance my SL slide after my Wistia video completes. See if this helps at all: http://wistia.com/doc/player-api
Thanks,
Mike
Thanks Mike for sharing that here - it sounds like it may help Kev, especially if he's got a background in JS!
This discussion is closed. You can start a new discussion or contact Articulate Support.