hello, i have managed to get pictures to load via a mysql database.
The trouble is that the drag and drop function will not work on these images.
-------------Code Start------------------------------------------------------
myLoadVars=new LoadVars(); myLoadVars.onLoad=function(ok){
if(ok){ data_txt.text=this.theText;
//loading in the image imageHolder_mc.loadMovie(this.theImage);
//the drag and drop function
imageHolder_mc.onPress=function(){
startDrag(this);
}
imageHolder_mc.onRelease=imageHolder_mc.onReleaseOutside=function(){
stopDrag(); }
}
}else{
data_txt.text=‘Error’;
}
function loadData(sectionID){ myLoadVars.row=sectionID;
myLoadVars.sendAndLoad(‘returndata.php’,myLoadVars,’POST’
;
}
home_btn.onRelease=function(){
loadData(1);
}
about_btn.onRelease=function(){
loadData(2);
} news_btn.onRelease=function(){
loadData(3);
}
-------------Code End------------------------------------------------------
Many Thanks