dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Mac Projector Help!

  1. #1
    Senior Member
    Join Date
    Jul 2000
    Location
    London
    Posts
    240
    Hi I have a mac projector file and an fscommands folder on OS X I am calling Install Internet Explorer which is in the fscommands folder

    using the following
    by the way also have ie5.2MAC folder within fscommands folder

    on (release) {
    fscommand("exec", "fscommands:ie5.2MAC:Install Internet Explorer");
    }


    however its not calling it does the projector file have to sit inside fscommands folder as well or do I have to put a file extension because I don't know what the extension is on a mac for the equivalent of a exe on windows - sorry new to macs.


    Just out of a matter of interest - is Netscape or IE5.2 better for distributing for use of Flash MX

    Also my JavaScript ()'s that work on Windows do not seem to work on Mac OS X with IE5.2 such as focus() so you don't have to click on movie to gain focus do anyone know the command to use?

    thanks in advance

  2. #2
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    OS X uses standard unix path notation, not the old colon, so try

    on (release) {
    fscommand("exec", "fscommands/ie5.2MAC/Install Internet Explorer");
    }

    Focus should work fine, what code are you using?
    (post it here)

    Browser won't really make a difference, and as a side note IE is installed automatically on all OS X systems up until 10.1 (dunno about 10.2, haven't got it).

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Location
    London
    Posts
    240
    Originally posted by SJT
    OS X uses standard unix path notation, not the old colon, so try

    on (release) {
    fscommand("exec", "fscommands/ie5.2MAC/Install Internet Explorer");
    }

    Focus should work fine, what code are you using?
    (post it here)

    Browser won't really make a difference, and as a side note IE is installed automatically on all OS X systems up until 10.1 (dunno about 10.2, haven't got it).

    thanks for your help


    but it still doesn't work do I have to to a applescript and call that instead with a tell application??


    or should that fscommand work?


    on the html page I have


    function focusMovie(){
    document.mymovie.focus();
    window.moveTo(0,0);
    if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 ) {
    window.resizeTo( screen.availWidth,screen.availHeight);
    }else{
    window.resizeTo( screen.availWidth-20,screen.availHeight-30);
    }
    }



    and from flash I call this javascript function (my swf has the id name mymovie)

    [Edited by ceeacs on 08-09-2002 at 05:25 AM]

  4. #4
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    Ahh,

    The fscommand should work, but you might want to add .app to the end of it, that's probably hidden on your system, but it's part of the filename
    You can't call external javascript function from inside flash movies in IE Mac, you have to put the actual code in the flash movie...

    sorry

  5. #5
    Senior Member
    Join Date
    Jul 2000
    Location
    London
    Posts
    240
    Originally posted by SJT
    Ahh,

    You can't call external javascript function from inside flash movies in IE Mac, you have to put the actual code in the flash movie...

    sorry

    how do I do that?

    and do you have any ideas about why the projector doesn't launch applications?


    thanks in a advance

  6. #6
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    Sorry I misread your post, and then edited mine, the app question is in there too.

    As for putting the javascript in flash;

    getURL("javascript:window.focus(); window.moveTo(0,0);
    if (navigator.appName && navigator.appName.indexOf(\"Microsoft\") != -1 ) {
    window.resizeTo( screen.availWidth,screen.availHeight);
    }else{
    window.resizeTo( screen.availWidth-20,screen.availHeight-30);
    }
    }");

    Should work, notice i've escaped the second set of quotes inside the javascript statement to stop the getURL statement thinking it ends there.

  7. #7
    Senior Member
    Join Date
    Jul 2000
    Location
    London
    Posts
    240
    Originally posted by SJT
    Sorry I misread your post, and then edited mine, the app question is in there too.

    As for putting the javascript in flash;

    getURL("javascript:window.focus(); window.moveTo(0,0);
    if (navigator.appName && navigator.appName.indexOf(\"Microsoft\") != -1 ) {
    window.resizeTo( screen.availWidth,screen.availHeight);
    }else{
    window.resizeTo( screen.availWidth-20,screen.availHeight-30);
    }
    }");

    Should work, notice i've escaped the second set of quotes inside the javascript statement to stop the getURL statement thinking it ends there.




    thanks for that but the projector still doesn't work ialready trie putting.app on it



  8. #8
    Senior Member SJT's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    2,563
    Only other thing i can think of right now is to escape the spaces in the path.

    on (release) {
    fscommand("exec", "fscommands/ie5.2MAC/Install\ Internet\ Explorer");
    }

    That shouldn't make a difference, but it depends on how Flash resolves paths.

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