User Tag List

Results 1 to 10 of 10

Thread: Web page accessing data from MMf2 app?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Web page accessing data from MMf2 app?

    Hi, I would like a way to access data on a server or local machine from a webpage.

    My first thoughts were either a java app or posting PHP from a mmf2 appp somehow?

    So basically i have some information thats being updated in a mmf2 app every 5 or 10 seconds on a PC (it could be on a server). Its only small information 16 bytes and i would like this information to be passed up to a webpage everytime its updated. OR have the feature to be able to go to the webpage and requested the updated information from the mmf2 app.

    Whats the best way about doing this?

    Thanks
    Andy

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Burfelt's Avatar
    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    526
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Web page accessing data from MMf2 app?

    You can use the GET Object to pass data to a webpage.

    In the object you can GET a page like:

    www.yoursite.com/index.php?string=test

    and in the index.php page you can use that GET string:

    <? php $_GET['string'] ?>

    When you get from the GET object, the output of the executed php page you are getting is send back to MMF. That Output can be found as the Content expression in the get object.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Web page accessing data from MMf2 app?

    ahh ok, sounds good. Ill have a play with that then. And what about being able to request the info from the website?

    Thanks
    Andy

  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: Web page accessing data from MMf2 app?

    You'd pass it as part of the URL like

    page.php?action=getsomedata

    and then

    Code:
    if($_GET['action'] == "getsomedata")
    {
       echo "some data!";
    }

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Web page accessing data from MMf2 app?

    Sorry i wrote that incorrectly. I meant being able to request info from the app on the PC via the webspage.

    For instance, instead of the app passing on the data to the wbepage every update. Only do it when i request it by clicking a button on the webpage?

    thanks
    Andy

  6. #6
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Burfelt's Avatar
    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    526
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Web page accessing data from MMf2 app?

    Yeah, remember you GET data (send info to the webpage) and also recieve the content of that webpage back to your GET object.

    When you GET (send) you always receive the executed page back as html. So if you just wanted to request data without sending you would just call a page with no parameters like www.yoursite.com/index.php

  7. #7
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Burfelt's Avatar
    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    526
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Web page accessing data from MMf2 app?

    having the webpage connect to your app is tricky.
    That might require you to host your own server.

    I'm not sure that is possible. You would still have to have the MMF app submit that value to the webpage at regular intervals.

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Web page accessing data from MMf2 app?

    Hmm sorry, still not sure if im confused or im not being clear. lol.

    Ill try a different route. imagine the mmf2 app and data is in america, and im in UK and i want to be able to go to a webpage, click a button and it displays the data from the app in america on the webpage!

    Hope that helps.
    Thanks
    Andy

    Note: Ahh i see you understand me. Ok, so whats lacewing.

    Note2: What about instead of it being a "webpage" i use a java app?

  9. #9
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Web page accessing data from MMf2 app?

    Your best bet is as Burfelt said:
    Quote Originally Posted by Burfelt
    have the MMF app submit that value to the webpage at regular intervals.
    Then store it on the webserver, and serve the stored version to anyone visiting the website.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Web page accessing data from MMf2 app?

    Quote Originally Posted by Gibbon
    Ok, so whats lacewing.
    Lacewing is a extension to make online things like chat apps and online games. It used to be called Oinc before that got replaced with Lacewing. It is currently in beta -

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=postlist&Board=80&page=1

Similar Threads

  1. How can I capture data from a non-MMF2 app?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 20th October 2010, 10:08 PM
  2. MMF2 module Flash - Pas de page HTML
    By Guspad in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 25th March 2010, 07:51 PM
  3. What's the best way to open a web page from MMF2?
    By LaraSoft in forum Multimedia Fusion 2 - Technical Support
    Replies: 20
    Last Post: 30th November 2007, 08:07 AM
  4. MMF2 - Accessing Web Folders Vista
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th September 2007, 09:24 PM
  5. MMF2 without registry data.
    By RaiFox in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th December 2006, 06:11 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
  •