Posted by Fred in SWF Studio V3 on Feb 05 2008, 06:54 pm

In my flash movie I load swf:s into different layers.

In one layer I'm trying to use:
ssCore.Shell.execute({path:"startdir://Data/App.exe"});
But it don't work.

It works perfect when I creates an .exe file of a single movie.

The same goes for:
ssCore.Win.minimize();

What am I doing wrong?

Regards,
Fred


Posted by northcode in SWF Studio V3 on Feb 05 2008, 11:11 pm

For starters, the path parameter should look like this (below). Notice the use of \\ instead of / as a separator between Data and App.exe. That's the way it should be done.


ssCore.Shell.execute({path:"startdir://Data\\App.exe"});
When the command fails, what are you getting back for an error from Shell.execute? You can get the error info like this...


var r = ssCore.Shell.execute({path:"startdir://Data\\App.exe"});

if (r.success)
{
   ssDebug.trace(r.Error.description);
}
else
{
   ssDebug.trace("catastrophic failure");
}
Make sure you have synchronous commands enabled and that you have enabled debug mode on the Output Tab so you can see the results of the ssDebug.trace calls in the Trace Tab.


Posted by Fred in SWF Studio V3 on Oct 08 2009, 12:41 pm

Posted the following a while ago.
Anyone who can help ?

Regards,
Fred

QUOTE: from Fred;42990
In my flash movie I load swf:s into different layers.

In one layer I'm trying to use:
ssCore.Shell.execute({path:"startdir://Data/App.exe"});
But it don't work.

It works perfect when I creates an .exe file of a single movie.

The same goes for:
ssCore.Win.minimize();

What am I doing wrong?

Regards,
Fred


Posted by northcode in SWF Studio V3 on Oct 08 2009, 01:29 pm

Posted the following reply a while ago too.
Did you read it?
Did you understand it?

QUOTE: from northcode;42991
For starters, the path parameter should look like this (below). Notice the use of \\ instead of / as a separator between Data and App.exe. That's the way it should be done.


ssCore.Shell.execute({path:"startdir://Data\\App.exe"});
When the command fails, what are you getting back for an error from Shell.execute? You can get the error info like this...


var r = ssCore.Shell.execute({path:"startdir://Data\\App.exe"});

if (r.success)
{
   ssDebug.trace(r.Error.description);
}
else
{
   ssDebug.trace("catastrophic failure");
}
Make sure you have synchronous commands enabled and that you have enabled debug mode on the Output Tab so you can see the results of the ssDebug.trace calls in the Trace Tab.