A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: CS4/AS3/AIR and fscommand

  1. #1
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,378

    CS4/AS3/AIR and fscommand

    Is there a fix for this problem yet? I've literally been searching for the entire day. I'm writing a home theater application and I need AIR's fileSystem package to read/write date to the library, but I also need a way to launch each video file. Launching them with a specified player would be a bonus. I've checked all the release notes I could for AIR since version 1.0 and I don't see any solutions. Does anyone have any up-to-date information about this? All the threads I've read have suggested things like CommandProxy and Shu-Player and Flash-Jester, but I need something solid that's -going- to work with CS4/AS3/AIR to let me launch video files. Thanks.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

  2. #2
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    You can't use fscommand EXEC from AIR so there's no way to launch an external application like you can from Flash and Flex. This will be addressed in AIR 2.0 according to information recently revealed at MAX. You will require some outside assistance to make this work today. That means an external application listening on a socket or a personal web server or an AIR wrapper application although Mike Chambers has already condemned this practice.

  3. #3
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,378
    Quote Originally Posted by Northcode View Post
    That means an external application listening on a socket...
    Do you have an example of what you mean by this? When is AIR 2.0 scheduled for release?
    Last edited by ImprisonedPride; 10-14-2009 at 02:25 PM.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

  4. #4
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    This was mentioned either in one of the MAX talks or at FOTB

    We expect to ship a beta version of Adobe AIR 2 on Adobe Labs by the end of the year. In the first half of 2010, we expect to ship the final version of AIR 2
    You would have to set up a socket server that ran locally before your AIR app started and then you would use the XMLSocket object to pass data to (or get data from) the external application.

    See http://www.adobe.com/support/flash/a...ionary860.html for more details.

  5. #5
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,378
    There's really no other way to do it? That's bad news for my client. So how do I move forward from here? I have little experience with socket servers and this one would only need to run locally. What I had originally intended was to use the AIR fileSystem and write a custom batch file to launch the video file, then delete the batch file after it runs. Do you have any pointers you could give me as to where I might get started?
    Last edited by ImprisonedPride; 10-14-2009 at 08:22 PM.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

  6. #6
    Pumpkin Carving 2008 ImprisonedPride's Avatar
    Join Date
    Apr 2006
    Location
    Grand Rapids MI
    Posts
    2,378
    I guess I've found a theoretical solution. I'll basically just create a local java socket server and pass the file name of the video from flash to the server which will launch it. I'll probably use an AutoHotKey script to launch/close both applications if either should be closed prematurely.
    The 'Boose':
    ASUS Sabertooth P67 TUF
    Intel Core i7-2600K Quad-Core Sandy Bridge 3.4GHz Overclocked to 4.2GHz
    8GB G.Skill Ripjaws 1600 DDR3
    ASUS ENGTX550 TI DC/DI/1GD5 GeForce GTX 550 Ti (Fermi) 1GB 1GDDR5 (Overclocked to 1.1GHz)
    New addition: OCZ Vertex 240GB SATA III SSD
    WEI Score: 7.6

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