A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: fscommand exec - paramaters and application craches

  1. #1
    SaphuA SaphuA's Avatar
    Join Date
    Oct 2002
    Location
    The Netherlands
    Posts
    2,180

    fscommand exec - paramaters and application craches

    Hi there,

    I'm using fscommand to run a self-made C# console application. The application runs when I double click it (traces a line), but when I run it using fscommand exec the application somehow crashes. How could this happen?

    Another thing I'm wondering; is there a way I can send parameters from Flash to the application?

    Kind regards,

    Edit: I've also tried using a .bat file to run the .exe. It seems to start the console but it immediatly closes it. Running the .bat file manualy does work though.
    Last edited by SaphuA; 11-16-2007 at 10:30 AM.

  2. #2
    SaphuA SaphuA's Avatar
    Join Date
    Oct 2002
    Location
    The Netherlands
    Posts
    2,180
    Sorry for the bump but I realy need help.

    A simple application I created in C# craches when I run it using fscommand exec. But when I run the application manualy everything runs perfectly. How could this happen?

  3. #3
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    If you're using Flash CS3, the you need to read this: FSCommand EXEC is Broken in Flash CS3.

    You can't send parameters to Flash applications from a Standalone Flash player using FSCommand. That option was removed in Flash MX (last available in Flash 5).

  4. #4
    SaphuA SaphuA's Avatar
    Join Date
    Oct 2002
    Location
    The Netherlands
    Posts
    2,180
    Hi,
    Thanks for your reply, that was a usefull read.

    It sux how the exec command has lost so much usefullness. I now have to run my own application like this:
    proxy.exe -> proxy.bat -> application.exe

    I once read somewhere that you were able to send parameters by using \t (tab). Is this still possible?
    Edit: Tested it and it doesn't seem to work

    What other options do I have to send data to the app?
    Edit: Currently I'm solving this by copying text and then using the clipboard to load the text in the application. The application won't be released to public so it's not a big deal, yet still quite an ugly solution.

    Kind regards,
    ~Sph
    Last edited by SaphuA; 11-19-2007 at 05:29 AM.

  5. #5
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    No, the tab thing doesn't work any more, that all ended with Flash MX.

    If you want to pass parameters you can build a little socket server into your C# app and send the parameters from Flash that way. Otherwise a third party tool is the only way to get around the limitations of the EXEC command.

    Here are a few links to third party tools to get you started

    SWF Studio http://www.northcode.com (my baby)
    SWFKit http://www.swfkit.com
    mProjector http://www.screentime.com
    Zinc http://www.multidmedia.com
    SWiSH Studio http://www.swishzone.com
    Jugglor http://www.jugglor.com

  6. #6
    SaphuA SaphuA's Avatar
    Join Date
    Oct 2002
    Location
    The Netherlands
    Posts
    2,180
    Hi there,

    Thanks for taking your time to help.

    A socketserver seems interesting. Could you maybe provide with some articles covering this? I don't have any idea where to start.

  7. #7
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    You'll want to take a look at this http://www.adobe.com/support/flash/a...ionary860.html to figure out how Flash is expecting an XML socket server to behave.

  8. #8
    SaphuA SaphuA's Avatar
    Join Date
    Oct 2002
    Location
    The Netherlands
    Posts
    2,180
    Thanks for the reply; using a socket server might be a bit overkill for now, maybe I'll look into it later.

    Aren't there any freeware swf to exe applications? All I need is to be able to send parameters.

  9. #9
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    There's screenweaver (open source) that you can find at more about at osflash.org and there are a few cheap ones but you probably don't wanna use the free ones

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center