FileReference.save (not undersood)

Hello all! i have movie clip with Images and button Save and class MyProject.as

how save images with my MyProject.as, with help FileReference.save?
what to write in code? how code should look like? tell me good people
I want to write everything in a separate class
Share ready example
Thanks