Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-29-2007, 01:28 PM
Junior Member
 
Join Date: Jun 2007
Posts: 6
Default Launching external application

Hi!
I am trying to launch external application, using
Code:
function runApp(args)
{
ExternalInterface.call("exec", args);
}
Everything works fine. But I faced one problem: When I pass the absolute path name of an application to this function, which contains spaces (for example C:\program files\pic.jpg) it does not work... It works, only when path has no spaces (for example C:\programfiles\pic.jpg).
Is there any fix of this problem?
Reply With Quote
  #2 (permalink)  
Old 07-29-2007, 01:58 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Launching external application

When the file to be executed by the "exec" command contains spaces, it should be in quotes. For example:
Code:
   ExternalInterface.call("exec", "\"c:\\program files\\pic.jpg\"");
Code:
   ExternalInterface.call("exec", "\"c:\\program files\\some.exe\" -t -s");
Reply With Quote
  #3 (permalink)  
Old 07-29-2007, 07:00 PM
Junior Member
 
Join Date: Jun 2007
Posts: 6
Default Re:Launching external application

Thank's a lot!!! Now it works perfect!
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:28 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.