User Tag List

Results 1 to 10 of 10

Thread: Getting an image from a URL

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting an image from a URL

    How would I download an image from a URL, and then display it via the Active Picture object? I've tried getting the image's data from a URL via the Get Object, then saving it via an edit box (I've also tried saving via the , then loading the image via an active picture object, but it doesn't work. The file saves, but if I try to open it in any image editing program, it gives me errors. I've also tried loading just loading the URL in the active picture, but that does not work, either. Is there currently a way to do this? Am I doing something wrong?

    Thanks!

  2. #2
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-onInstall Creator Pro
    StingRay's Avatar
    Join Date
    Nov 2006
    Location
    Austria
    Posts
    1,057
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    please take care of the "http://" in the url of the file. and load it with a "START OF FRAME" action. for me it works fine!

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you mean load it using the active picture object, or via the get object?

  4. #4
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-onInstall Creator Pro
    StingRay's Avatar
    Join Date
    Nov 2006
    Location
    Austria
    Posts
    1,057
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    With the active picture! (Get image from url)

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried that, but it doesn't work for some reason. I'm using the latest builds of MMF2 Dev and the iOS exporter. Here's the event I'm trying to use:
    + Start of frame
    - [Active Picture] New Image: "http://upload.wikimedia.org/wikipedia/commons/5/51/Google.png"

    The picture new loads for some reason, and I've tried other images. There aren't any other actions that I can see that would load an image from a URL, so I don't know what I'm doing wrong.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Game_Master - The image you're trying to load might be too big for memory (Google.png is 1192x432 pixels and will need to be stored in memory as 2048x512 as well as the mask data - that's a lot of memory for a small device!) Try it on a smaller image, eg http://electricaldeals.files.wordpre...ogle_logo1.jpg

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally, I did try that - I used random small image from some website I came across while browsing

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    payopepe's Avatar
    Join Date
    Sep 2012
    Location
    Barcelona (Catalonia, Spain)
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I do not get. I followed the steps, I tested with several images of various sizes and is cleared, no image loaded.

    If someone has done it, please put the sample code.

    Thank you!

  9. #9
    Clicker

    Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleSWF Export Module
    xhedgehogx's Avatar
    Join Date
    Nov 2007
    Location
    NY, USA
    Posts
    743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have trouble getting the picture to load too, but I've spent less than a minute with it. And figured I'd work with it later on.

    But, I had a related question with this. Is it possible to detect whether or not the user has an internet connection? Say, Start of Frame, there is an internet connection, load image from (URL). Or with no internet connection, just don't do anything, or load a local image?

  10. #10
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    Please note that the Active Picture Object can't load the image from an URL on Windows. It only works on iOS so far.

Similar Threads

  1. Image annotation / Image modification with MMF2
    By titobal in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th September 2013, 04:13 PM
  2. image active : Bug Changement d'image
    By Monos in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 10th April 2013, 05:55 PM
  3. Objet Image (ou Image Active) et rayures
    By volgot in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 20th April 2011, 04:10 PM
  4. Getting image dimensions from IMAGE parameters?
    By Nobuyuki in forum Shader Development
    Replies: 3
    Last Post: 6th February 2011, 11:51 PM
  5. Image > RTF
    By Game_Master in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 11th July 2009, 11:18 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
  •