External files problem...

Ask a Question related to Macromedia Director Basics, Design and Development.

  1. #1

    Default External files problem...

    My company wants me to make a patch for an old set of cdroms. The projector on
    the old cdroms weren't centered and create navigation problems at lower
    resolutions due to the interface being off the edge of the screen. So my dilema
    is accessing the files on the cdrom. I have already created the new projector
    and now need to figure out how to find and link to the media on the cdrom. I'm
    using the trial version of BudyAPI (allows two functions to be used and I'm
    only using one: baFindDrive) to locate and set the path to the cdrom. I have my
    variable set correctly, I think, but I just don't know how to go about telling
    the video/flash sprites and music cast member where to look. I assume I would
    put it into a behavior script attached to the sprite and use the on beginSprite
    call, but I'm not sure. The code I have in place already is this:


    --------------------------------------------------------------------------------
    --------
    global myDrive, myDriveSep, myPath, vidPath, swfPath, mp3Path

    on prepareMovie me
    myDrive = baFindDrive("c", "myapp.exe")
    myDriveSep = ":\"
    the itemDelimiter = "\"
    myPath = myDrive&myDriveSep
    vidPath = myPath&("video")& the itemDelimiter
    swfPath = myPath&("swf")& the itemDelimiter
    mp3Path = myPath&("music")& the itemDelimiter
    end
    -----------------------------------------------------------------------

    This leaves me with two questions:
    1 - Where do I put the script that tells the music cast members and
    flash/video sprites where to find the files?
    2 - How do I set it? (seems that it's already set but needs to be applied
    somewhere?)

    Thanks in advance for any help anyone can give.

    DigitalPimp Guest

  2. Similar Questions and Discussions

    1. external .js files
      Hi all, I see there is a way to setup external app to edit source files, but is there a way to use an external app (notepad.exe) to edit .js...
    2. flashplayer problem in 2000 loading external .xml files
      Hi all , Am getting pretty frazzled on this one at the moment - not sure exactly what is going on - and hoping someone else might have some...
    3. External .as files
      I have a movie with ScrollPane component When exporting the size report is like this... Frame # Frame Bytes Total Bytes Scene -------...
    4. Slideshow with external files
      Hi, Flash comes with a nice slideshow movie, but I would like it that when the "next" button is pressed, it would load external photos. The movie...
    5. external exe files
      Hi Michael, No. You cannot effect your user's computer in any way from a web application. This isn't a Shockwave thing, it's a web security...
  3. #2

    Default Re: External files problem...

    Check searchpaths in the help...
    vij010 Guest

  4. #3

    Default Re: External files problem...

    I did that right after posting. I used the variables as stated in my previous post and it still prompts me for video locations when the video starts.

    Any other ideas?
    DigitalPimp Guest

  5. #4

    Default Re: External files problem...

    I am using something similar, but not importing old director files (mostly
    flash movies, text, and pictures), but I can assume it would work the same. I
    import the files with the "Link to External File" selected. Then something
    similar to this:

    on enterFrame me
    member("flash_movie").filename = "@/Flash/flash_movie.swf"
    end

    The @ symbol will tell the movie to start searching where the movie file is
    located and then you can either put the filename or the path and filename to
    the movie or whatever you are importing. Additionally you can use one cast
    member and call it differently as long as the movies are the same size,
    otherwise it resizes things wierd, such as:

    on mouseUp me
    member("flash_movie").filename = "@/Flash/flash_movie1.swf"
    end

    Just change the filename to whatever file you want opened as the appropriate
    button is clicked, or frame is entered with enterFrame. I haven't used the
    BuddyAPI, I hear it is great...but I haven't had a problem doing what I need
    without it so far. Hope it helps

    Toolman21 Guest

Posting Permissions

  • You may not post new threads
  • You may 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