Professional Web Applications Themes

launching an external file - Macromedia Director Basics

I haven't used Director for a long time (I am using Director 8.5.) I am creating a CD that will have an autorun pop up screen (a director movie.) I would like to have a button on the pop up screen that launches a html file that is on the CD (not a URL.) I have tried using the "open" command but have not been able to get it to work. The file on the CD is called "START.htm" and I have been using this: on mouseUp me open "START.htm" end any help would be appreciated.. G...

  1. #1

    Default launching an external file

    I haven't used Director for a long time (I am using Director 8.5.) I am creating a CD that will have an autorun pop up screen (a director movie.) I would like to have a button on the pop up screen that launches a html file that is on the CD (not a URL.) I have tried using the "open" command but have not been able to get it to work. The file on the CD is called "START.htm" and I have been using this:

    on mouseUp me
    open "START.htm"
    end

    any help would be appreciated..
    G



    kptgreg2 webforumsuser@macromedia.com Guest

  2. #2

    Default Re: launching an external file


    Try this:
    on mouseUp me
    open the moviePath & "START.htm"
    end



    "kptgreg2" <webforumsusermacromedia.com> wrote in message
    news:bha8l5$7hi$1forums.macromedia.com...
    > I haven't used Director for a long time (I am using Director 8.5.) I am
    creating a CD that will have an autorun pop up screen (a director movie.) I
    would like to have a button on the pop up screen that launches a html file
    that is on the CD (not a URL.) I have tried using the "open" command but
    have not been able to get it to work. The file on the CD is called
    "START.htm" and I have been using this:
    >
    > on mouseUp me
    > open "START.htm"
    > end
    >
    > any help would be appreciated..
    > G
    >
    >

    john smith Guest

  3. #3

    Default Re: launching an external file

    the "open" command (by itself) only works with executable type files (exe, com, bat, etc) and secondly, the pathways cannot be relational, they must be exact.

    you have 4 options:

    1. open the moviePath & "START.htm" with path2browserexecutable

    In this case you have to find the user's browser pathway first, which can be done but can take a while in some cases.



    2. gotoNetPage the moviePath & "START.htm"

    This should open the file in the user's default browser, but it doesn't always work



    3. use the OpenURL or OpenFile commands found in the BuddyAPI Xtra

    You'll have to play with this one because if the user has an editing package installed (DreamWeaver or FrontPage) and the default command for htm files is "edit" then OpenFile will actually open it in their editor ... so you may need to stick with OpenURL.

    OpenURL works better than the gotoNetPage for some reason, but basically does the same thing.



    4. you can get the WebXtra Xtra from Tabuleiro and actually open the htm doent inside of Director (using a Director version of a web browser essentially) ... however I believe the Xtra is PC only.



    Chances are you will be pretty successful if you use #2 or #3, very successful with #1, and very successful with #4 if you are only targetting PCs.




    ============================
    Glen Palmer
    SafariTECH
    Cold Fusion Specialist
    [url]www.safaritech.com[/url]
    ============================
    SafariTECH Guest

Similar Threads

  1. ASPNET App and Launching a Batch File...
    By Rob Jones in forum ASP.NET Security
    Replies: 0
    Last Post: February 29th, 02:46 AM
  2. Launching a Director EXE file from Flash
    By nevin in forum Macromedia Flash Actionscript
    Replies: 3
    Last Post: February 20th, 12:15 AM
  3. problem launching external app
    By Al Brassell in forum Macromedia Director Basics
    Replies: 2
    Last Post: October 14th, 06:54 PM
  4. Launching an executable file
    By mickytaggart66 webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 3
    Last Post: July 24th, 03:40 PM
  5. Replies: 0
    Last Post: July 9th, 01:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139