PDA

View Full Version : can't get the current directory from a CD


rvaras
01-28-2003, 11:30 PM
I tried using this code... (suggested in this forum)

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);

From my hard disk.. there's no problem...
But it doesn't work when the projector runs from a CD....
Any ideas ?
thanx.

Flashants
01-29-2003, 01:46 AM
Write a loop between from 1 and frame 4 to wait as following:

Frame 1:
initDir = "NONE";
fscommand("fas.shell.GetInitDir", "initDir");

Frame 2:
// nothing

Frame 3:
if (initDir == "NONE") {
gotoandplay(_currentframe - 1);
}

Frame 4:
fullPath= initDir add "video\\baby.mpg"
fscommand ("fas.avclip.xy", "83,64");
fscommand ("fas.avclip.load", fullPath);

Let me know if this work for you.

rvaras
01-29-2003, 05:43 AM
hey, thanks a lot.... but it was MY mistake here....
there was a typo in this line...

fullPath= initDir add "video\\baby.mpg"

actually it wans't a typo... I got confused with the "\\"...
In fact... what does the "\\" mean ? what are there for ?

thanx