# Truveo api + AS3 plssss help

**URL:** https://forum.kirupa.com/t/truveo-api-as3-plssss-help/268055
**Category:** flash
**Created:** [August 8, 2008, 5:49pm UTC](https://forum.kirupa.com/t/truveo-api-as3-plssss-help/268055 "2008-08-08T17:49:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sandin](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@sandin](https://forum.kirupa.com/u/sandin)
#### Post date: [August 8, 2008, 5:49pm UTC](https://forum.kirupa.com/t/truveo-api-as3-plssss-help/268055/1 "2008-08-08T17:49:18Z")

</div>

Hi friends,

i am using truveo api in flash cs3 now, if i use the give truveo flash api am getting error that XMLNode is not a compile time constant, i couldnt solve it, so decided to go to XML api, there i am having the url string as

[http://xml.truveo.com/apiv3?appid=b4aba9a123e2261c2&method=truveo.videos.getVideos&query=Cat&results=5&start=0&showRelatedItems=1&tagResults=10&channelResults=10&categoryResults=10&userResults=10&showAdult=0](http://xml.truveo.com/apiv3?appid=b4aba9a123e2261c2&method=truveo.videos.getVideos&query=Cat&results=5&start=0&showRelatedItems=1&tagResults=10&channelResults=10&categoryResults=10&userResults=10&showAdult=0)

when i put this url in my browser i get a xml file as expected, but in flash i use the following code

var aol\_loader:URLLoader = new URLLoader();  
aol\_loader.addEventListener(Event.COMPLETE, aol\_picsLoaded);

var aol\_request:URLRequest = new URLRequest(aol\_xml\_url);  
aol\_loader.load(aol\_request);

function aol\_picsLoaded(e:Event):void  
{  
var pics:XML = new XML();  
var picsLoader:URLLoader = URLLoader(e.target);  
pics = XML(picsLoader.data);

```
trace(pics);

```

}

where the aol\_xml\_url is the url i gave above…

what wrong am doing… i am getting the error as the url cannot be opened, its getting in browser, but in flash its not opening, what wrong am doing… pls i have to get this within tomo, its very urgent, pls help frnds… below s the error i get

Error opening URL ‘[http://xml.truveo.com/apiv3?appid=b4aba9a123e2261c2&method=truveo.videos.getVideos&query=Jennifer+Lopez&results=5&start=0&showRelatedItems=1&tagResults=10&channelResults=10&categoryResults=10&userResults=10&showAdult=0](http://xml.truveo.com/apiv3?appid=b4aba9a123e2261c2&method=truveo.videos.getVideos&query=Jennifer+Lopez&results=5&start=0&showRelatedItems=1&tagResults=10&channelResults=10&categoryResults=10&userResults=10&showAdult=0)’  
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: [http://xml.truveo.com/apiv3?appid=b4aba9a123e2261c2&method=truveo.videos.getVideos&query=Jennifer+Lopez&results=5&start=0&showRelatedItems=1&tagResults=10&channelResults=10&categoryResults=10&userResults=10&showAdult=0](http://xml.truveo.com/apiv3?appid=b4aba9a123e2261c2&method=truveo.videos.getVideos&query=Jennifer+Lopez&results=5&start=0&showRelatedItems=1&tagResults=10&channelResults=10&categoryResults=10&userResults=10&showAdult=0)  
at Untitled\_fla::MainTimeline/Untitled\_fla::frame1()

what am i doin wrong frnds… pls tel me
