A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Cross browser image loading problem

Threaded View

  1. #1
    Brian Monnone
    Join Date
    Jul 2000

    Cross browser image loading problem

    I am trying to load a facebook profile image into flash.

    I have the function fbSetUserPic called with the path to the image that we receive from facebook for the user profile. Here is what the function looks like:

    function fbSetUserPic(fbPic){
    	loadMovie(fbPic, fbMain.fbMainPostLogin.fbProfileImage);
    Initially, the fbMain.fbMainPostLogin.fbProfileImage movie clip shows a gray box.

    This function works when I try it in firefox and it replaces the gray box with the profile image. The problem is that it does not seem to work in any other browsers (IE, Safari, Chrome). Instead of loading the facebook profile image, the gray box disappears but no image appears in its place.

    One thing that I tried when I was debugging is hardcoding an image on the local server into the function rather than loading the path received from facebook. The image loaded in all browsers using this method. It worked for both an image in the same directory as the flash, and an image in a different directory on the same server.

    I have tried a crossdomain.xml file allowing every domain, but that doesn't seem to work. I don't think that is the issue because it works in firefox whether I have crossdomain.xml file there or not.

    I've tried all kinds of googling and haven't come up with a solution. Does anybody have any ideas?

    Last edited by Sigma; 07-30-2009 at 12:44 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

Click Here to Expand Forum to Full Width

HTML5 Development Center