PDA

View Full Version : opening a .avi in default app


omyomar
12-03-2005, 09:25 PM
hey i have flash menu and i'd like to be able to open an avi file in it's default application.

thanks for any replies

CyanBlue
12-03-2005, 09:39 PM
Howdy and Welcome... :)

What happens if you use getURL() like this???
getURL("yourVideo.avi", "_blank");

omyomar
12-03-2005, 10:59 PM
yeah that works....but i'd like it to open in the default application, instead of opening in explorer. Do you know how to start an .exe? If so i think I can manage it.

Thanks

CyanBlue
12-03-2005, 11:22 PM
There is no way you can do that if you are doing it over the web, but if you are working on the Projector, you might be able to by using third party projector tools such as Zinc and such...
The problem would be that your default program for AVI and mine might not be the same...

Flash Gordon
12-04-2005, 12:58 AM
yeah that works....but i'd like it to open in the default application, instead of opening in explorerI believe all files open in their default application.

CyanBlue
12-04-2005, 12:43 PM
Well... If you try to download the AVI file, IE will ask if you want to play in IE instead... That's the only thing I can think of...

omyomar
12-06-2005, 03:25 AM
First thanks for the replies.

Second what im trying to do is make a kind of dvd menu, for a tv show that i downloaded. So the files are all on a cd that i've burned and i'll have the flash documen in the same directory.

If it still cant be done by opening the file with a function, then how do you make a system call to open an exe?


thx again for the replies

CyanBlue
12-06-2005, 03:33 AM
You use fscommand() with 'exec' argument...

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14280

omyomar
12-07-2005, 04:26 AM
ok thank you that's exactly what i want to do...

now i used fscommand and i got the other commands to work quit and fullscreen

BUT i could not get exec to work! :mad:


i uploaded my files and the folder arrangements please let me know where i went wrong

THANK YOU!

omyomar
12-09-2005, 03:19 AM
ok i realize that this fscommand useage is in many areas of the forum and it's well documented...but it's not working for me


can someone please take a look and either tell me whether it's a) my computer (cause what i did works on yours)

or b) some problem that i didnt realize



thank you!!!!!

CyanBlue
12-09-2005, 04:51 AM
Publish the projector and then test it... It won't work if you just try that from within the Flash itself or if you execute the SWF file only... It has to be run from the projector... Also, make sure that you are calling the BAT file not BAF file...

omyomar
12-10-2005, 04:45 AM
cyanblue! you magnificent son of a....!

she works!