AS3 Loadvars problem, need help please


I’m mostly a designer and use AS to add some nice features on my sites. I have a Latest News section that I want to use with AS3 because AS3 supports images in textblocks. Now I get an error because of the Loadsvars statement. Can anyone help me with the proper AS3 code to get this working with AS3 please. Any help is very much appriciated.

var receiver:LoadVars = new LoadVars();
news_txt.htmlText = “loading news data…”;
receiver.onLoad = function(ok){
news_txt.htmlText = “”;
for(var i =1;i<;i++){
receiver[“dataPacket”+i] = receiver[“news_data”+(i)].split("|");
var _id:String = receiver[“dataPacket”+i][0];
var _title:String = receiver[“dataPacket”+i][1];
var _body:String = receiver[“dataPacket”+i][2];
var _posted:String = receiver[“dataPacket”+i][3];
news_txt.htmlText += (_title + “<br/>” + _body + “<br/>” + _posted + “<br/><br/>”)
news_txt.htmlText = “no news data was found!”;

The error I get is:

1046: Type was not found or was not a compile-time constant: LoadVars.


Darth Neo