A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How can I launch a projector from a projector in Macs?

  1. #1
    Senior Member
    Join Date
    Mar 2001
    Posts
    269

    How can I launch a projector from a projector in Macs?

    Can someone tell me how I can launch a projector from another in Macs?

    I have two exe's and I can easily call one exe from the other one in Flash.

    But, how can I make solution that I can use to burn a CD that will work on both PC' and Macs?

    The only way I can see is take a version of the exe's for Macs from within Flash? If this is the only way, how do I know what file names I should be calling?

    Any help would be appreciated.

    Thanks.


    Jam

  2. #2
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    I posted this little snippet a while ago for another problem, but it might make your life easier too. Just call SmartExec instead of calling FSCommand("exec", "whatever") directly and you can forget about platform differences.

    Code:
    function SmartExec(target)
    {
       platform = $version.slice(0,3);
    
       if (platform == "WIN") {
          fscommnd("exec", target + ".exe");
       } else {
          fscommand("exec", target);
       }
    
    }
    Note: You still have to worry about the FSCommand directory if you're using Flash MX or MX2004. That means you can call projector B from projector A, but you can't call A from B again because A isn't in the FSCommand folder.

  3. #3
    Senior Member
    Join Date
    Mar 2001
    Posts
    269
    Thanks for the reply.
    I'm using Flash 5 to make my exe's.
    Will that function work in Flash 5?
    (I can't really test it to try it out because I don't have a Mac.)

  4. #4
    Lifetime Friend of Site Staff Northcode's Avatar
    Join Date
    Dec 2000
    Location
    Whitehorse YT
    Posts
    3,766
    The only part I was really concerned about (in Flash 5) was $version.slice(0,3);, but the documentation says that String.slice existed in Flash 5 so it should work.

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