Opening flash player from code

  • Thread starter Thread starter Peder Y
  • Start date Start date
P

Peder Y

I have an swf-file that I need to open in Macromedias Flash Player.

1) How do I open this file using the default program?

2) How can I ensure a second swf opens in a different player window?

3) How can I ensure a second swf opens in the same window?

4) How do I make a window topmost?


Thanks!


- Peder -
 
I have an swf-file that I need to open in Macromedias Flash Player.

1) How do I open this file using the default program?

You can use the System.Diagnostics.Process class for this.
Just send the file as a process to windows. Windows will open the program
registered to .swf
Process.Start("somefile.swf");
2) How can I ensure a second swf opens in a different player window?

Well, then you might want to send the file directly to the program. My
experience with Internet Explorer opening html-files is that sending it to
windows will overwrite the current window, while sending it as a parameter
to internet explorer will open a new window.
Process.Start("Flash.exe", "C:\\myPath\\myFile.swf");
3) How can I ensure a second swf opens in the same window?

Send it to windows? Not sure with Flash Player
4) How do I make a window topmost?

Um, A new program should open topmost, but I can't guarantee it.
Thanks!


- Peder -

Also, you might need the path for the flashplayer which you might find in
the registry if you know the exact name for the executable.

Happy coding!
Morten
 
Back
Top