Skip to main content
Participating Frequently
December 21, 2009
Question

FMIS, images and allowscript access

  • December 21, 2009
  • 1 reply
  • 469 views

Hello.

I have a very specific problem. I need to load certain images that my php script creates, and acts as proxy to some apis, into a Flash client (application) however I cannot use direct calls to HTTP server because I'm not allowed to use allowscriptaccess=true. So I've been using FMS for some aspects of my application such as live video and audio and SharedObjects.

I know I can write scripts to load and parse XML files on the server side so that shouldn't be a problem to get, however I'm stuck on loading in images going through FMIS.

When I test my video recording and chatting application using SharedObjects, everything works fine even if allowscriptaccess=false, but none of my images will load (naturally since the script access is limited). I know that some sites disallow scriptaccess parameter in Flash embed code so I would want everything to go through FMIS.

I have read some suggestions that I could try to load files directly from server-side on FMIS as binary and try to pass that to the client and let Flash generate the image with ByteArray but I wouldn't try to lose time if it's not possible or will stumble upon problems.

Does anyone have any ideas whether or not FMIS can serve images direclty through RTMP (which would save me some headache) beacuse I could load XML info from server-side and when I get the link to image use RTMP to load the image, but I'm unsure if this is possible at all.

Any help would be much appreciated.

    This topic has been closed for replies.

    1 reply

    calmchessplayer
    Inspiring
    December 21, 2009

    I have some ideas if you tell me what you are going to do with the images once they arel

    oaded.

    BozzifiedAuthor
    Participating Frequently
    December 21, 2009

    Yes.. well to make it simple:

    1. I pull images from all over with PHP (my clients - artist). Proxy them through my HTTP server and load that feed as binary PNG or JPG to Flash Media Interactive Server from server side to avoid allowscript access problem with Flash when used on some sites that disallow that.

    2. Call that image file through RTMP or pass raw image file from FMIS into the Flash application.
    <br>
    3. Use the images for photo gallery, avatar thumbnail, album thumbnails and so on. Like a more advanced MP3 player.


    I have a full application doing that now. But it's naturally calling PHP and HTTP stuff directly from Flash. The problem is that this stuff doesn't work if ALLOWSCRIPTACCESS is turned off in the Flash embed code.

    So I thought going through FMIS instead would be a solution because I know that video and chat and shareobjects work just fine even if Flash app is limited to allowscriptaccess=false as it's going through RTMP.

    Thanks for your response.