I am currently working on a Flash CS4 design. I urgently need two AS2 codes for the following functions:
1) I have created a Print icon in Flash. Clicking the icon should directly print the external pdf which will be saved next to SWF file.
2) I also have created a Download icon which should directly download the same external pdf.
Please help me! I am in trouble.
1) I don't think there is any way to have Flash/AS2 control the user's system such that it could cause a file to be printed. That would be a security issue if it could.
2) To download a file you can use the FileReference class. Here's a link to the documentation for it.
You should be able to find additional info/examples using Google.
As an alternative, if you were to just link directly to the pdf file using a getURL command, it would download the file to a browser window and the option to print and save would be available thru the Reader.