At 5:37 Uhr -0700 20.04.2002, nitin sharma wrote:
>hi Michael von Aichberger
>this script i write in my movie
>
>on startmovie
>importpicts
>end
>   on importPicts
>
>   mypath = "(C:\WINDOWS\Desktop\imagefolder\images)"
>--- should i give the name of specific image
>   repeat with i = 1 to 9999999
>
>    nextFileName = getNthFileNameInFolder(myPath, i)
>
>       if nextFileName = EMPTY then
>         exit
>       end if
>
>
>      member("forImport").fileName = myPath &
>nextFileName --- all is in one line

first thing I would try is to check if the path is valid:

put myPath&nextFileName

then you would easily see in the message window, that there is a path 
seperator missing...
and you can change your script to something like:

member("forImport").fileName = myPath&"\"&nextFileNam

(despite the fact, that it won't work x-platform like that, since the 
path seperator on mac is ":", but as mypath isn't x-platform...)

one more thing:
the startmovie event isn't a good place for that kind of task. try to avoid it.
better would be to have a frame, with a 'loading images...' message 
(or even blank) which does the import after the movie setup is done 
(preparemovie, prepareframe 1 , beginsprite in frame 1 and 
startmovie)and do the task on its exitframe event -- as far as it is 
possible.
don't get me wrong, it DOES work on startmovie, since the castlib 
header info and the score info, is already loaded into RAM, the only 
thing what I want to say is: TRY to avoid it, since it is more stable 
to do it after the movie setup is finished. the demanding tasks 
shouldn't get executed at startmovie IMHO
-- 

   |||
a�ex
  --
[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