A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Determine if Mac or PC within a flash projector? (for use with FSCommand)

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    11

    Determine if Mac or PC within a flash projector? (for use with FSCommand)

    Determine if Mac or PC within a flash projector? (for use with FSCommand)

    How do I determine if a computer is Mac or PC within a flash projector?

    I need this because I've got several FSCommands I need to use within a projector (such as launching an application or file) and need to have different commands for Mac and PC.

    Code:
    if (MAC) {
        (do this)
    } else if (PC) {
        (do this)
    }
    Anyone know how to do this?

    Note: I'm using Flash 8 w/ Actionscript 1 & 2 (?) on a Intel Mac 10.4.11

  2. #2
    Junior Member
    Join Date
    Mar 2009
    Posts
    11
    sorry ... this question should've been posted in the standalones section here...

    http://board.flashkit.com/board/show....php?p=4152267

  3. #3
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    you wont have the same projector file for mac and pc anyway... pc's will have a .exe extension and macs will have a .app extension... you will need to create two different projector files one for mac and one for pc... look at your publish settings and it will be more clear..
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  4. #4
    Junior Member
    Join Date
    Mar 2009
    Posts
    11
    Quote Originally Posted by silentweed View Post
    you wont have the same projector file for mac and pc anyway... pc's will have a .exe extension and macs will have a .app extension...
    Yes, I know the projector files will be different, but it will all be based off the same flash source file.

  5. #5
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    i understand that..sometimes in case of projector files its just easier to make mac and pc version source files... how if you dont want to ... have a look at http://www.adobe.com/support/flash/a...ionary712.html
    Last edited by silentweed; 03-13-2009 at 05:11 AM.
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

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