I am currently interested in developing a drawing application and have come across this by Senocular:
http://www.senocular.com/demo/ASDRecorder/ASDRecorder.html
Files can be found here:
http://www.senocular.com/demo/ASDRecorder/
What I’m struggling with is removing the file selection part of the application. I just want to be able to set whichever file is loaded myself not allow people to choose. i.e drawing1.data
The loadfile part of the AS is this:
dialogs.LoadFile = function(){
var file = this.loadlist.getSelectedItem();
if (!file){
msg_txt.text = "Invalid Selection.";
return false;
}
this.selectedfile = file.label;
this.loading_anim.animate(true);
this.cancel_btn.enabled = this.load_btn.enabled = false;
msg_txt.text = "Loading...";
Recorder.clear();
delete drawing_lv.onLoad;
drawing_lv.onData = onLoadHandler;
drawing_lv.load(file.data);
}
How can I change this Loadfile function to just load drawing1.data instead of the variable file.data
Any help with this would be greatly appreciated. Thank you.