Loading remote swfs

Posted on Thursday 30 June 2005

I've already mentionned before the need for cross domain policy files when you load XML data into a Flash from another domain. This also applies to Remoting and LoadVars (though not FlashComm). What if you need to load a swf from another domain inside a container swf? That happened to me just yesterday with this affiliate network of sites that use centralized preview swfs. The solution, courtesy of Jesse, is quite simple, but hard to dig in the docs; add this line in the child fla's root timeline:


System.security.allowDomain(_parent._url);
 

This will allow the domain that loaded the child swf to access the child. That's all there is to it.


WordPress database error: [Can't open file: 'wp_comments.MYD'. (errno: 145)]
SELECT * FROM wp_comments WHERE comment_post_ID = '123' AND comment_approved = '1' ORDER BY comment_date

No comments have been added to this post yet.

Leave a comment




Your e-mail address is never displayed. If you run into issues with SpamKarma blocking you, email me at $patrick->5etdemi(com)


RSS feed for comments on this post | TrackBack URI