Topic: RSS Reader Image Resizing
Hello!
I was trying to use the RSS reader as... well an RSS reader.
However, most of the images are too large, and I was wondering if anyone knew some actionscript to fix it. I have tried a lot, but when I do, the image never appears.
If anyone is curious, I wrote a little thing to separate the image from the body on most RSS feeds, where the image is part of the description.
function GetImage(des){
var del:Array ;
del = des.split('<img src="');
des = del[1];
var img:Array;
img = des.split('"/>');
var image:String;
image = img[0];
return(image);
}
function GetDes(ddd){
thing = ddd.toString();
var del1:Array;
del1 = thing.split('.jpg"/>');
var des2:String;
des2 = del1[1];
var img1:Array;
img1 = des2.split("<br/>"); //change <br/> to something at the end.
var image1:String;
image1 = img1[0];
return(image1);
}
I used some weird variables. GetImage gets the URL, GetDes gets the description content.