PDA

View Full Version : fscommand("exec","a.exe")


blueyes
11-27-2005, 02:42 PM
I use fscommand("exec","a.exe") to open another FLASH application but unsucceful.

I have a Main application call "Main.exe"
Two sub application call "a.exe" & "b.exe"

"Main.exe" have 2 button
First button go to call "a.exe"
Second buttnon go to call "b.exe"

"a.exe"got 1 button exit,I want make it back to "Main.exe" and "a.exe" is close while this button is press.

"b.exe" also same with "a.exe"....got 1 button exit,I want make it back to "Main.exe" and "a.exe" is close while this button is press.

Anyone know how to deal with it ?

blueyes
11-27-2005, 02:51 PM
I had tried to change the "a.exe" to "a.swf" and used the "Main.exe" 's projector to open the "a.swf" with

loadMovieNum("a.swf",1);


but I do not know how to unloadMovieNum(Target,para) itself ! Headache man.....
someone teach me please......

oldnewbie
11-27-2005, 02:59 PM
Since MX, new syntax applies for "exec"... The .exe's must be in a direct subfolder to the one that holds the projector file...

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

If you use .swfs intead, and want to unload it, simply use...

on(release){
unloadMovieNum(1);
}

blueyes
11-27-2005, 03:07 PM
thank you brother...now I realise new rule is applied.......
work already....