User Tag List

Results 1 to 7 of 7

Thread: Which extension would I use to make a JS API call?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Which extension would I use to make a JS API call?

    Hey, folks!

    Does MMF2 have an extension which I can use to make a JavaScript API call? Would I use the Lua object (and use the "Call a string" action)?

    Please note that I'm new to JavaScript, so any and all help would be greatly appreciated. Thank you!



    Most appreciatively...

    RGBreality

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Which extension would I use to make a JS API call?

    You'd use the Vitalize object. As far as I know, XLUA isn't ported for any of the Java exports, and the call a string is for LUA, not Java :p
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Which extension would I use to make a JS API call?

    Hey, LB! How are you? Thanks for the quick reply!

    Let me ask you this: I intend that the JavaScript API open HTML in a Web Control object--not an external Web browser. Can the Web Control object make JavaScript API calls?



    RGBreality

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Which extension would I use to make a JS API call?

    Oh, I actually have no idea. You'd have to ask FVivolo, or someone who uses the Web Control object. He recently released an update to his VideoPro extension, so I think he'll be around for a while to answer questions...
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: Which extension would I use to make a JS API call?

    Yes, it can - using the "do script" action. I haven't tried it myself (don't have MMF2 Developer) but it looks pretty basic (read the help file - that's what it's there for).

    Sadly there's no proper Javascript extension that's the equivalent of the Lua extensions - a real shame considering JS is much nicer IMO, and certainly far more widely used.
    Maybe one day someone will make a decent JS extension, and NOT make it Developer only...

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Which extension would I use to make a JS API call?

    How would you have a JavaScript extension for MMF2 JavaScript is for webpages mostly, unless I'm just unaware that it just happens to be used in webpages...(I probably am)
    Working as fast as I can on Fusion 3

  7. #7
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: Which extension would I use to make a JS API call?

    There's no reason why you couldn't use any scripting language in MMF2 - they can all be used to run a specified function with a set of arguments, and return a value.

    Yes, Javascript is for webpages mostly, but what's that got to do with anything?

    It's still a very powerful scripting language - more powerful than Lua in fact. It's actually quite suitable for use in games - Actionscript (used to code Flash games) is basically the same thing as JS, and there are now plenty of games being made using HTML5 and JS.

    Lua:
    * Faster - not really important, as the speed of the scripting language is very unlikely to be the limiting factor in the speed of the overall game (graphics, collision-detection, etc).

    Javascript:
    * More powerful - not really important, as Lua can do everything game makers are ever likely to need.
    * Far more widely used - anyone who ever did webpage design or made Flash games will already know JS. This also means there are far more books, online tutorials, etc to help newcomers learn JS. It also means that if you're learning JS to use in MMF2, you're learning something you might find other uses for as well.

Similar Threads

  1. Make a Call without "Call Phone" permission?!?
    By StingRay in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 21st April 2013, 08:35 AM
  2. Make a phone call on android phones
    By StingRay in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 8th May 2012, 09:06 AM
  3. Trying to make my own fullscreen extension
    By UltimateWalrus in forum Extension Development
    Replies: 4
    Last Post: 7th January 2011, 06:20 AM
  4. Dragonguy wants to make an Extension
    By dragonguy in forum Extension Development
    Replies: 23
    Last Post: 22nd July 2008, 05:44 PM
  5. Should you know MMF to make an extension?
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th March 2008, 08:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •