View Full Version : dir or path - video files for projector
davidjac
09-23-2002, 01:21 AM
We use FMprojector 1.51, mostly for video/flash CD production. I have had difficulty with "paths" in some of the FScommands. I would like to place the video clips in a sub-directory on the disc. I have been unable to "find" the video when placed in a sub-directory. So far, my solution has been to place the video clips on the "root". I am now working on a project with 40 or more clips. Placing that many clips on the root would seem "unprofessional" to me. Any help would be appreciated.
Thanks
David
Flashants
09-23-2002, 02:45 AM
To access the sub folder for fmprojector, you always need to specify the full path:
Use fas.shell.GetInitDir to get the current working directory(the exe location) and then append the sub folder name to it.(maybe you need to add a "/" between)
http://www.flashants.com/tutor/commandList.shtml#6-1-3
Flashants
09-24-2002, 10:18 AM
Pls notice that you should wait a few frames untill the path string to be successfully retrieved.
Example:
Frame 1:
var initDir
fscommand("fas.shell.GetInitDir", "initDir");
Frame 4:
fullPath= initDir add "video\\baby.mpg"
fscommand ("fas.avclip.xy", "83,64");
fscommand ("fas.avclip.load", fullPath);
Or you may loop to check if the initDir is retrieved.
Yozeph
10-11-2002, 01:40 PM
Don't use spaces in you directory names makes a difference as well I found out.
Success
Flashants
10-14-2002, 03:18 AM
Originally posted by Flashants
Pls notice that you should wait a few frames untill the path string to be successfully retrieved.
Example:
Frame 1:
var initDir
fscommand("fas.shell.GetInitDir", "initDir");
Frame 4:
fullPath= initDir add "video\\baby.mpg"
fscommand ("fas.avclip.xy", "83,64");
fscommand ("fas.avclip.load", fullPath);
Or you may loop to check if the initDir is retrieved.
Check the FAQ here:
http://www.flashants.com/faq/faq.shtml#2_17
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.