Not finding what you are looking for? Request a recipe!
Use BitmapData class to create an object containing visual data from the component. Encode it to JPEG or PNG using the appropriate encoder from mx.graphics.codec package and save it to a file using the File and FileStream class from AIR API.