A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Advanced usage fscommand.

  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    4

    Advanced usage fscommand.

    Open any files from flash projector.
    No '.bat', '.ini' files and etc.
    Build command to open dynamicaly in ActionScript.
    Handle error in ActionScript.
    Relative path supprt.
    Custom error Message Box support.
    Hide/show system taskbar feature.
    LocalConnection-base project.
    Vista compatible (may be )
    Thanks for
    http://www.osflash.org/localconnection
    authors.
    Simple usage code:
    Code:
    var client:LocalConnection = new LocalConnection();
    client.connect("fromExe");
    client.send("toExe", "fromExe");
    open_btn.onRelease = function() {
    	client.send("toExe", "open", "..\\myfile.pdf");
    };
    fscommand("exec", "flrun.exe");
    Last edited by alexcon314; 10-14-2008 at 01:55 PM.

  2. #2
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    The only problem with that approach is that it's undocumented (or not officially documented) and that makes it dependent on some very specific implementation details. If Adobe decides to change the way they implement local connection objects in the future then solutions based on this technique may not work.

    I wouldn't recommend using this in a mission critical application unless you're willing to tie your solution to the particular version of Flash you're using right now.

    Working within the documented parts of the Flash player don't give you as much flexibility but you're almost guaranteed (Adobe can obviously change anything at any time) to be able to do the same things tomorrow as you can do today.

  3. #3
    Junior Member
    Join Date
    Oct 2008
    Posts
    4
    Ok. Safecode go one definitely. Thank's.
    PS. But where my attached zip? I don't see... why?
    Last edited by alexcon314; 10-14-2008 at 02:12 PM.

  4. #4
    Junior Member
    Join Date
    Oct 2008
    Posts
    4
    See demo project here

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