# Senoculars drawing API

**URL:** https://forum.kirupa.com/t/senoculars-drawing-api/278305
**Category:** flash
**Created:** [December 26, 2008, 5:38pm UTC](https://forum.kirupa.com/t/senoculars-drawing-api/278305 "2008-12-26T17:38:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jimjiminyjimjim](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)
#### Post date: [December 26, 2008, 5:38pm UTC](https://forum.kirupa.com/t/senoculars-drawing-api/278305/1 "2008-12-26T17:38:49Z")

</div>

I am currently interested in developing a drawing application and have come across this by Senocular:

[http://www.senocular.com/demo/ASDRecorder/ASDRecorder.html](http://www.senocular.com/demo/ASDRecorder/ASDRecorder.html)

Files can be found here:

[http://www.senocular.com/demo/ASDRecorder/](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:

```auto

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.
