hi john,

here a simple solution for finding the correct drive-letter with lingo. this
solution requires that the rest of the video-path is exotic enough not to occur
accidently a second time on the users computer, otherwise you would have to add
a check for the videofile itself to the handler.

----------
on getVideoPath
    repeat with i = 68 to 90 -- check from D to Z
        DriveLetter = NumToChar(i)
        VideoPath = DriveLetter & "\Main\video"
        if getNthFileNameInFolder(VideoPath,1) <> "" then return VideoPath
    end repeat
    return false
end
----------

best regards,
valentin


> My client is having me use the OnStage Media Xtra for Director,
> because they
> own the liscense.
>
> My problem is that everything I've tried has failed to link this
> video to
> the program. I've had to hard code the path of the video, in order for
> Director to be able to find it. It wasn't a problem, because the
> clients
> user base SUPPOSEDLY had all their CD drives labeled as D:. Well now
> we
> found out that there are machines that have E: labeled CD drives.
> What a
> surprise.
>
> Anyway, Director can't find the video in a video folder below its
> subdirectory and it can't even find it in the SAME directory that my
> projector is in. The ONLY way we've ever gotten this video to be
> found is a
> straight hard-coded path. (ie. D:\Main\video\video.mpg)
>
> Has anyone ever work with this Xtra and can offer any idea or suggest?
> Tabulerio's Xtra works so well, but the client doesn't want to
> purchase
> another Xtra, they want this one.
>
> Any suggestions would be appreciated.
>
> Thanks one and all,
> John
>
>
> ===================================================
> John R. Sweeney Jr.        ([EMAIL PROTECTED])
> Interactive Multimedia Developer/
> Digital Media Specialist
>
> OnDemand - Interactive, Inc.
> 847.651.4469 (cell)      847.310.5959 (office/fax)
> ===================================================

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to