A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Image problem (crossdomain?)

  1. #1
    Junior Member
    Join Date
    Jan 2006
    Posts
    3

    Image problem (crossdomain?)

    I'm having trouble with a new site I'm testing. Everything works almost perfectly in IE8 IE7 IE6, but when I test the site using Chrome 3.0, Safari 4.0 or Firefox 3.5 my images just don't load. To display the images I use a .swf written with my Koolmoves 6.2.0 (registered user). It just uses a createemptymovieclip and a loadmovie to load the image by path/name, resize it, put some tooltip on it and so on. The images are loaded setting the path to another web site that I use just as a repository. The site, of course, is mine as well.
    To clear things up:
    mysite="http://www.mysite.com"
    path="http://SiteWithPics.com/path/"
    image="ImageName.jpg"
    newClip = _root.createEmptyMovieClip("clip", 1);
    newClip.createEmptyMovieClip("holder", 1);
    newClip.holder.loadMovie(path+image);
    Could the problem dipend on crossdomain? Any suggestion?

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    It's possible but you should have the problem with any browser if that's the case.
    Start by adding a crossdomain.xml file to the sitewithpics server.

    Code:
    <?xml version="1.0"?><!DOCTYPE cross-domain-policySYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from domain="www.mysite.com" />
    <allow-access-from domain="mysite.com" />
    </cross-domain-policy>
    Also install the debug version of the flash player for both IE and FF and download flashlogviewer from Koolexchange. Then when you test you can see any errors and this will help you find any problems. You will wonder how you ever lived without them.

    Email me the address of your test and I'll also give it a look, I also have tools in FF that lets me see the traffic between FF and the server. (Firebug plugin)

Tags for this Thread

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