User Tag List

Results 1 to 6 of 6

Thread: Display Image from URL?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jul 2006
    Location
    Pittsburgh, PA, USA
    Posts
    777
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Display Image from URL?

    I'd like to get an image from a url and display it in my MMF2 Flash application. Is there a flash-compatible extension that can do this? I haven't found anything.

    Specifically, I intend to retrieve a Facebook user's profile image from the url http://graph.facebook.com/<USER ID>/picture

    Thank you.

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Something like this maybe...
    Attached files Attached files

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jul 2006
    Location
    Pittsburgh, PA, USA
    Posts
    777
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes like that, except the Active Picture object unfortunately isn't available to the SWF exporter.

  4. #4
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Unlucky...

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    941
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    The flash images plus extension works:
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=218663

    it's what i use to generate the main page on gameyey.com

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jul 2006
    Location
    Pittsburgh, PA, USA
    Posts
    777
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks SoftWarewolf. My problem now is that Flash Images Plus is not able to load Facebook profile images because the http://graph.facebook.com/<USER ID>/picture url is a directory that redirects to the actual image. So I'm guessing I'll need to do some local caching of these images, which I would like to avoid. If anyone knows any possible workarounds, I would very much appreciate it. Is there a way to retrieve the url that is redirected to and then get the image from that? :/

    EDIT: I found a solution in some PHP code, using the Get object in MMF. Here's the code, for benefit of future searches:
    PHP Code:
    <?php
    $dest 
    "http://graph.facebook.com/".$_GET['user']."/picture/";

    $ch curl_init();
    curl_setopt($chCURLOPT_URL$dest);
    curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
    curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
    curl_exec($ch);

    $url curl_getinfo($chCURLINFO_EFFECTIVE_URL);

    curl_close($ch);

    echo(
    $url);
    ?>

Similar Threads

  1. Using Character Image to display Japanese text
    By Strife in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 16th July 2013, 02:45 PM
  2. Display external image file that on the memory loaded by the binary object
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th July 2012, 07:42 AM
  3. Display Image from URL?
    By pinacoladaxb in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 18th June 2012, 10:46 PM
  4. RC #2 - Cannto display image when app deactivated
    By BHGames in forum iOS Export Module Version 2.0
    Replies: 17
    Last Post: 24th June 2011, 01:12 PM
  5. Character Image doesn't display zero?
    By mobichan in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 1st May 2011, 11:54 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
  •