User Tag List

Results 1 to 5 of 5

Thread: Using AS3 inside MMF2

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2006
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using AS3 inside MMF2

    I have noticed a lot of companies use an AS3 API (ActionScript 3 file) importing the file in the game program and then calling functions inside the API to do such things as submit high scores, display ads, etc...

    It would be nice if there was something (perhaps an object) that allowed MMF2 to import these AS3 API files and then allow us to access their functions. This object would also need to be able to receive data returned from these companies (to indicate success or failure or such things as a player purchasing an item).

    Perhaps something like the Lua+, .net script or BASIC Objects.

    This might be the way Mochi is going to be introduced in the next SWFExporter update for MMF2.

    If something like this were available this would allow us to use services offered by many other companies (such as GamerSafe).

    Jason

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Using AS3 inside MMF2

    Mochi is going to have it's own extensions, nothing like that.

    Although that is a good idea.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Using AS3 inside MMF2

    You can easily do that by coding an extension for the flash runtime. The only problem is that you need a C++ version of the extension as well.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Using AS3 inside MMF2

    AS 3.0 doesn't have an eval function, which means you can't run scripts from a string. It's theoretically possible to build the script into the AS project before building it, I suppose.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2006
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Using AS3 inside MMF2

    I have found a library (D.eval API) that introduces the eval function to AS3. You can find it at:

    http://www.riaone.com/products/deval/index.html

    Would it be possible to use this library in an extension that imports third party APIs and allows a user to access their functions from inside MMF2?

    Jason

Similar Threads

  1. Sounds not playing inside or outside MMF2
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 12th September 2013, 10:03 AM
  2. Fit Inside
    By virtualrom in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 29th May 2013, 06:37 PM
  3. Open URL inside of swf app?
    By uncleswell in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 13th January 2011, 04:46 PM
  4. Movie inside SWF
    By kikiriki in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 28th November 2010, 11:59 AM

Posting Permissions

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