well my text file looks like this
reviewer0=Revin
&rating0=5
&movie0=test
&reviewmsg0=this is a cool yet unknown weird movie nobody know about ... that doesn't exist
reviewer1=Revin
&rating1=5
&movie1=test2
&reviewmsg1=this is also a cool yet unknown weird movie nobody know about ... that doesn't exist
heres the code…
lvLoader = new LoadVars();
var i:Number = 0;
lvLoader.onLoad = function(success) {
if (success) {
_root.reviewmsg = lvLoader.reviewmsg+i;
_root.movie = lvLoader.movie+i;
_root.rating = lvLoader.rating+i;
_root.reviewer = lvLoader.reviewer+i;
_root.avatart = lvLoader.reviewer+i;
avatar.loadMovie(_root.avatart.split(i)+".jpg");
} else {
reviewmsg.text = "loading review";
movie.text = "getting name";
rating.text = "getting Rating";
reviewer.text = "loading Reviewer";
avatar.loadMovie("loading.jpg");
}
};
lvLoader.load("moviereviews.txt");
i’m still pretty new to actionscript and i’m not sure what i’m doing wrong
i’ve attached a .fla file if you need it
avatar is 150x150
it would be greatly appreciated if you help me