6088 comments
2357 subscribers
6229 on Twitter
Subscribe! Feed reader E-mail

Can’t see cross-domain images in your Flash file? Make a crossdomain.xml

My mom recently noticed that images weren’t loading in the Flash viewer on www.adphoto.com.ph, but they were loaded on adphoto.com.ph. A quick look at the Javascript console showed that crossdomain.xml was missing. The Macromedia Flash 10 plugin is stricter about this than previous versions were, so if you don’t have a crossdomain.xml set up, you might find your older sites breaking for new browsers.

Here is a straightforward crossdomain.xml that allows requests from everywhere, useful for development:

<?xml version="1.0" ?>
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

You can specify domains like this:

<?xml version="1.0" ?>
<cross-domain-policy>
<allow-access-from domain="adphoto.com.ph" />
<allow-access-from domain="www.adphoto.com.ph" />
</cross-domain-policy>

More information: http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html

When debugging a website, it is often helpful to use Chrome or Firefox’s developer tools, such as the Javascript console. In this case, the request for crossdomain.xml and the resulting 404 (not found) helped me find out what was going on.

2011-03-08 Tue 08:01

Short URL: http://sachachua.com/blog/p/22136
  • http://www.bugsbane.net Ramon

    Hmm… first you got the slashdot effect, then the digg effect: I wonder if there’s gonna be a ‘sachachua blog’-effect on the traffic going to addphoto.com.ph?

    But… overall. ’tis a good post. No new info for me, but lots of good info for others.

    I use firebug in Firefox, btw. It is indispensible. That and the jQuerify bookmarklet.

  • richardlee

    this works too.

On This Day...

  • 2013: Taking advantage of a bad cold — I’m feeling under the weather. Instead of fighting it, I can embrace this feeling of fuzziness and figure out how [...]
  • 2012: The confidence of non-expertise — I stopped worrying about being an impostor when I started writing about what I was learning. Confession that gave me [...]
  • 2011: Quick notes from Emacs Org-mode talk at GTALUG — My Emacs Org-mode talk at GTALUG was a lot of fun. I had made a quick outline of things I [...]
  • 2010: Weekly review: Week ending March 7, 2010 — From last week’s plans: Work [X] Prepare overview of Sametime Unyte and Lotus Connections Communities for my second-line manager [X] [...]
  • 2009: Reinvesting — I’m looking forward to receiving the first bonus of my working life. =) Thinking about it, I’m reminded of a [...]
  • 2008: You have received a painting from Sacha
  • 2008: Vacations are essential — (color balance on my DS is a little off… How can I calibrate the color profile of this thing?)
  • 2008: You have received a painting from Sacha
  • 2008: You have received a painting from Sacha
  • 2006: Meme time — Instead of answering the full 25-item questionnaire posted by Dominique Cimafranca on his blog, I think I’ll explore one or [...]
  • 2005: Under-leg loops — Can now make the diabolo loop around one leg. Back catch still needs improvement, but can be dramatic finish. Must practice [...]
  • 2005: Congrats to teams who competed in Java Cup and Quizzardry! — Ealden wrote: Congratulations to the teams who competed in the recently concluded Java Cup and Quizzardry competitions! The Java Cup [...]
  • 2005: Official website for OSC-Ph 2005 — Official website for open source conference to be held in Cebu on March 14 and 15: http://www.secure.net.ph/ossa/ On Technorati: opensource, conference, cebu, [...]
  • 2004: New module: planner-notes-index.el — planner-notes-index allows you to view and publish an index of notes in PlannerMode day pages. The roadmap for this module can [...]
  • 2004: Finite automata in LaTeX — sachac: hey, remember I asked for something to draw FA's [finite automata] with, that was closely connected to [...]
  • 2004: Display subject on the first line, dynamically — ;;; gnus-summary-update-subject.el --- Display subject on the first line, dynamically ;;; Time-stamp: ;; ;; Modified by Sacha to work with subjects [...]
  • 2004: Planner supports Wanderlust — Yvonne Thomson contributed Wanderlust mail client support for PlannerMode. Check out http://sacha.free.net.ph/notebook/emacs/emacs-wiki/planner-wl.el . ../../notebook/emacs/emacs-wiki/planner-wl.el
  • 2004: C-u M-x planner-create-task-from-buffer — dto on #emacs suggested a way to create tasks associated with planner pages. Arch repository and dev snapshot should have working [...]
  • 2004: DARN! — Just remembered why I had those planner compatibility functions in the first place. Mumble mumble. That’s it, I’m packaging a deb…
  • 2004: Wikibook — Cookbook — http://wikibooks.org/wiki/Cookbook
  • 2004: Hotshot — 55 words — Hotshot programmer fresh from college thinks he can do everything, eh? I keep particularly nasty COBOL code for these special occasions. [...]

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging

Free sample!