Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2009
    Posts
    19

    Unanswered: Directory / file paths / wav.mp3.swf

    Halo there, need some pro to help me with this puzzle.

    Ok, Assume i've a form, which contains :

    ---> .swf (as ActiveX)
    ---> .wav
    ---> .mp3

    Q. How can i play this item, which is together with DB folder?

    example :

    Main folder = DBfolder
    DBfolder = interfaceFolder , soundsFolder, multimediaFolder,etc.

    soundsFolder contains : .wav , .mp3
    multimediaFolder contains : .swf

    -----so i don't want to type specific where the file is;

    i want to accomplish something like this, ;

    PlaySounds = (currentDB + "Helo.wav)
    PlaySounds = (currentDB + "Background.mp3)

    Not like this : PlaySound ("D:\Design Folder\Combination\Sounds\Good Morning[001].wav")

    For .swf file path :--

    Path = (currentDB + "Multimedia.swf")

    '// assign swf name & path
    stSwfPath = CurrentProject.Path & MultimediaFolder & SwfName

    '// check for file
    If fFileExists(stSwfPath) Then

    something like this.

    help me pro.

  2. #2
    Join Date
    Mar 2009
    Posts
    5,442
    Provided Answers: 14
    Ok, so where is the problem ?

    The only thing I can add to what you wrote is that you have to add a "\" after CurrentProject.Path:
    Code:
    stSwfPath = CurrentProject.Path & "\" & MultimediaFolder & SwfName
    and possibly:
    Code:
    stSwfPath = CurrentProject.Path & "\" & MultimediaFolder & "\" & SwfName
    And everything should probably be enclosed in quotes.


    Have a nice day!

Posting Permissions

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