# Security.allowDomain

**URL:** <https://forum.kirupa.com/t/security-allowdomain/314383>\
**Category:** Uncategorized\
**Created:** [September 27, 2010, 9:22am UTC](https://forum.kirupa.com/t/security-allowdomain/314383 "2010-09-27T09:22:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbhD41](https://avatars.discourse-cdn.com/v4/letter/t/e68b1a/32.png) [@tbhD41](https://forum.kirupa.com/u/tbhD41)\
**Post date:** [September 27, 2010, 9:22am UTC](https://forum.kirupa.com/t/security-allowdomain/314383/1 "2010-09-27T09:22:11Z")

</div>

Hey

I have a small problem with the security function.

I have made a small banner there post a titel from a RRS feed. The RSS feed coms form extern domain.

When I run the banner local it’s work out perfect, but online it dosent works;(

I use this code to permit the externe communication: Security.allowDomain(“[www.larspetersen.net](http://www.larspetersen.net)”);

```auto

import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.system.Security;
import flash.system.SecurityPanel;

Security.allowDomain("www.larspetersen.net");

var format:TextFormat = new TextFormat();
var font = new Font_my();
format.font = font.fontName;
title_text.defaultTextFormat = format;

var rssLoader:URLLoader = new URLLoader;
var rssURL:URLRequest = new URLRequest ("http://larspetersen.net/index.php?format=feed&amp;type=rss");
rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
rssLoader.load(rssURL);

var rssXML:XML = new XML();
rssXML.ignoreWhitespace = true;

function rssLoaded(evt:Event):void {
	rssXML = XML(rssLoader.data);
	trace(rssXML.channel.item[0].title);
	//title_text.text = rssXML.channel.item[0].title;
	}

```

Troels
