User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: How to upload a picture to HTML5 during the game?

  1. #1
    Clicker 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)
    sneg_up's Avatar
    Join Date
    Oct 2014
    Posts
    45
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question How to upload a picture to HTML5 during the game?

    How to upload a picture to HTML5 game from the game folder during the game? For example, a picture "1.jpg" will be uploaded at a certain moment. I would be glad if someone shows the source. Thank.

  2. #2
    Clicker 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)
    sneg_up's Avatar
    Join Date
    Oct 2014
    Posts
    45
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I want to change the question. How to export an external picture to a game HTML5? That is, how to upload a picture from a computer or phone to the game?

  3. #3
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    41
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hi , you need an object which can get image from external source ; Don't know if exist on mmf2 html5.

    Regards, Gigatron

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF Export Module
    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)

    Join Date
    Dec 2010
    Posts
    198
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    there may be a way, although I don't have the php knowledge to do it myself. If you loaded the image to an external server with an external requestor launched with tagholder, you could then load it with the get command.
    It's not simple by any means.

  5. #5
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    388
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Picture / Active Picture object can load images from a URL
    But if you mean sending the file to the internet, this would be a totally different thing...

  6. #6
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Christian_Wheel's Avatar
    Join Date
    Mar 2010
    Location
    Los Angeles
    Posts
    359
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You would need to write your own function in javascript to offer the user a browse dialog and do the upload. Then you could call the function at the appropriate time via the html5 object.

  7. #7
    Clicker 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)
    sneg_up's Avatar
    Join Date
    Oct 2014
    Posts
    45
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I have a picture upload file through Java script, but I can’t connect, I can’t upload a picture on Internet in HTML5. Does anyone have a similar source?

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleUniversal Windows Platform Export Module
    Fusion 2.5 (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2009
    Posts
    304
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Would have been interesting to have a tutorial (the clickteam) on how to import an image into an html5 application ..... but

  9. #9
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    41
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sneg_up View Post
    I have a picture upload file through Java script, but I can’t connect, I can’t upload a picture on Internet in HTML5. Does anyone have a similar source?
    Hi,
    This demo use a little extension called imageloader for html5 exporter , is that what you want or ?

    ** refresh page with f5 if it's not loading;

    http://gigatron3k.free.fr/html5/F25/imageloader/

  10. #10
    Clicker Fusion 2.5
    Gigatron's Avatar
    Join Date
    Jun 2020
    Location
    France
    Posts
    41
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Html5 image loader

    In addition here is the extension;

    - Copy IMage.js to Data\Runtime\Html5
    - Copy IMage.mfx to Extensions\Unicode

    Have Fun
    Attached files Attached files

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Any way to upload files via an html5 app?
    By Christian_Wheel in forum HTML5 Export Module 2.5
    Replies: 4
    Last Post: 23rd August 2018, 01:51 PM
  2. Use html5 app to upload to database?
    By TheCrimsonTaco in forum HTML5 Export Module 2.5
    Replies: 0
    Last Post: 13th April 2017, 07:34 PM
  3. Replies: 1
    Last Post: 3rd January 2016, 12:28 PM
  4. Replies: 2
    Last Post: 3rd February 2014, 07:29 PM
  5. HTML5 files to upload to the server
    By larckson in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th December 2013, 03:26 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
  •