Page 1 of 1

nbPlayAction in javasript?

PostPosted: Fri Jan 01, 2016 4:04 am
by HPW
Hello,

Is there an equivalent to the neobook5 SDK command nbPlayAction in neoAppBuilders JavaScript library?

Regards

Re: nbPlayAction in javasript?

PostPosted: Fri Jan 01, 2016 6:38 am
by Gaev
Hans Peter:

I might be wrong in assuming this, but guessing at what the nbPlayAction command does from its name, I think it would involve the use of the Javascript function called eval().

This can be a very dangerous thing in the wrong hands/context ... and frowned upon by the various gatekeepers of the internet (e.g. Googmeister).

Re: nbPlayAction in javasript?

PostPosted: Fri Jan 01, 2016 11:57 am
by HPW
Hello Gaev,

javascripts eval does call JavaScript code from a string.
This can be all existing/loaded JavaScript code/keywords.

neoscript from neoappbuilder is translated to JavaScript and executed.

My question was, if callable JavaScript-functions of the neoscript-function exist.
Would allow callbacks in neoscript-similar Syntax.

Regards

Re: nbPlayAction in javasript?

PostPosted: Sat Jan 02, 2016 10:50 pm
by Neosoft Support
There are JavaScript equivalents for all NAB actions. Some are just converted by the compiler to JS directly and others simple call custom JS functions. So the answer is yes, but you'll probably need the syntax to be documented in order to use them.

Re: nbPlayAction in javasript?

PostPosted: Sat Jan 02, 2016 11:38 pm
by HPW
...but you'll probably need the syntax to be documented in order to use them.


Sounds good, so a todo for the final help-file.

Regards