How to make the .swf and run automatically

Hi Friends!

Can you give me the idea for the below question?

(1) Want to generate the (.swf) file automatically based on the (*.fla) file which is in the folder.

[The (*.fla) file have the proper code in it.]

N.B - Scope of the question is, created the project in Visual Basic and generate the information and stored it in (.xml),through the file i would like to generate the (.swf) based on the (*.fla) file,which i will already typed in and stored in the corresponding folder.

If anyone come across of this situation or aware of this question,just guide or send a snippet code for further move.Thanks in advance.Have a nice day.

Cheers
SATHISH KUMAR G