Image source not working with flex

15 views
Skip to first unread message

rialand

unread,
Jan 18, 2011, 3:24:58 PM1/18/11
to Iconfinder API
hi

i use iconfiner Api with flex
but its not working
when activate just trace '[SWF] /pagenotfound - 0 bytes after
decompression' again

mycode:

private function send():void{

req.url = "http://www.iconfinder.com/xml/search/?
q=box&c=5&p=2&min=1&max=48&api_key=mykey";
loader.addEventListener(Event.COMPLETE, complete);
loader.load(req);
}
private function complete(e:Event):void{

var feed:XML = new XML(e.target.data);
var feedList:XMLList = feed.iconmatches.icon.image;
trace(feedList[0]);
}
trace = http://cdn1.iconfinder.com/data%2Ficons%2Fsoftwaredemo%2FPNG%2F48x48%2FBox_Red.png

so i make image with trace url

<mx:Image id="img"
source="http://cdn1.iconfinder.com/data%2Ficons%2Fsoftwaredemo%2FPNG
%2F48x48%2FBox_Red.png" />

but its not working. Just trace '[SWF] /pagenotfound - 0 bytes after
decompression'

Is Iconfinder Api not working with Flex?
Reply all
Reply to author
Forward
0 new messages