Downloading a file in Flash 8

Hey, I am new to this forum and coding in flash 8, but I wanted to try and use flash to download a file to a computer from the .swf that I create. For example, If a user clicks on a button that I make from a graphic or text, he/she will get the “save as” or “download” dialog box by right clicking, but I’m having a lot of trouble figuring this out. I’ve heard about FileReference so I tried working with some of this code, but most places say that you need to use php to get this to work. Any help or pointers would be greatly appreciated! Thanks!