xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark">
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.SecurityErrorEvent;
import mx.controls.Alert;
private var loader:URLLoader = new URLLoader();
private function triggerSecurityError():void {
var request:URLRequest = new URLRequest("c:/temp/feeds.txt");
try {
loader.load(request);
} catch (error:SecurityError) {
Alert.show(error.name + ": " + error.message);
}
}