PDA

View Full Version : Problem opening external .swf



jerilyn
10-25-2007, 03:23 PM
This used to work. Can't figure out what went wrong. I have a menu item set up to open an external .swf file.

The menu ID is 10005.

In Actions, the code is as follows. In the "On Menu" tab,

elseif e_ID == 10005 then
File.Open("AutoPlay\\Flash\\TrainingVideo.swf", "", SW_SHOWNORMAL);

jerilyn
10-26-2007, 04:27 PM
Problem solved. Found another suggestion on this forum and it worked. I put my .swf in a new AMS project, published as .exe then changed my code in my project to open it as an external file and it works great.

TJS
10-26-2007, 09:09 PM
The problem might be that the system has no file association for .swf file. You might want to try:



File.OpenURL("AutoPlay\\Flash\\TrainingVideo.swf", SW_NORMAL);


This will ensure that your swf is opened in the user's default browser.