dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Multiple Buttons executing S/W programs

  1. #1
    Member
    Join Date
    Feb 2000
    Location
    Virginia
    Posts
    83

    Multiple Buttons executing S/W programs

    Hello,

    I've figured out how to use the proxy.exe to instigate a software program, however I was using the sample Northcode supplied which used a component button. I've created buttons of my own and wanted to use the function command that was supplied:


    function onButton()
    {
    fscommand("exec", "file.exe");
    }

    This works perfectly for the component button, but I can't get it to work if I use my buttons with this command:

    on (release) {
    fscommand("exec", "file.exe");
    }

    Can the fscommand only be used with the function command? I'm more of a designer, obviously, but thought the command should still work.

    Any help would be greatly appreciated!! Again, I'll be using multiple buttons to pull up S/W programs and need several proxie.exe's to run this dashboard.
    Brian E.W. McNulty
    ShckByte@yahoo.com

  2. #2
    Tim (Super Moderator) Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    The call will work just as well from an on release handler. Add a trace statement to your on release handler so you can see what's going on. I'm betting that the fscommand isn't actually getting called when you think it is.

    It's a lot easier to name the instance you're trying to attache the fscommand to and then assign the release handler in code like this. That way all your calls are in one place and easy to find, instead of being scattered throughout the timeline.

    Code:
    instancename.onRelease = function()
    {
       fscommand("exec", "file.exe")
    }

  3. #3
    Member
    Join Date
    Feb 2000
    Location
    Virginia
    Posts
    83
    Yes, I tried this and just got it to work with:

    my_btn.onRelease = function() {
    fscommand("exec", "file.exe");
    };

    Thanks for your help. Much appreciated!
    Brian E.W. McNulty
    ShckByte@yahoo.com

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