The following works INSIDE Flex Builder but NOT on the browser.

Code:
// ea is a button click event from a button
public function nowSave(ea:MouseEvent= null):void
        {
        	var file:FileReference = new FileReference();
        	file.save(imageByteArray,"file.jpg"); // image byte array is data somewhere
        	removeChild(ea.target as MovieClip);
        }
Any ideas why?