# Loading a web page in flash

**URL:** https://forum.kirupa.com/t/loading-a-web-page-in-flash/298599
**Category:** flash
**Created:** [October 21, 2009, 6:00pm UTC](https://forum.kirupa.com/t/loading-a-web-page-in-flash/298599 "2009-10-21T18:00:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![darren884](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@darren884](https://forum.kirupa.com/u/darren884)
#### Post date: [October 21, 2009, 6:00pm UTC](https://forum.kirupa.com/t/loading-a-web-page-in-flash/298599/1 "2009-10-21T18:00:18Z")

</div>

I am trying to load the contents of a web page into flash, however I keep getting undefined when I trace the data. For example:

var api:URLLoader = new URLLoader();  
api.dataFormat = URLLoaderDataFormat.TEXT;  
api.load(new URLRequest(this.\_api\_url + ‘logged\_in?key=’ + this.\_api\_key));  
trace(api.data);

It points to the right address, why isn’t my data loading though? Do I need to have a crossdomain policy? I wouldn’t think I would need to…
