I created a save button and added an eventlistener to run the saveAs() when the button is clicked but I'm getting 

Error #1063: Argument count mismatch on views::TxtView/saveAs(). Expected 0, got 1.

I haven't supplied any arguments.

In my init()
...

```
var saveAsFileBtn:IconButton = new IconButton();
                saveAsFileBtn.setIcon("../icons/saveas.png");
                saveAsFileBtn.width=100;
                saveAsFileBtn.x=saveFileBtn.width+71;
                saveAsFileBtn.sizeMode = SizeMode.BOTH;
                saveAsFileBtn.sizeUnit = SizeUnit.PIXELS    
                saveAsFileBtn.addEventListener(MouseEvent.CLICK, saveAs);

```

...

then

```
private function saveAs():void 
            {
                trace("Save as");
                var fileChooser:File;
                if (currentFile)
                {
                    fileChooser = currentFile;
                }
                else
                {
                    fileChooser = File.documentsDirectory.resolvePath('untitled.html')
                }
                fileChooser.browseForSave("Save As");
                fileChooser.addEventListener(Event.SELECT, saveAsFileSelected);
            }

```

The debugger stops when the Save As button is clicked.