This content has been marked as final. Show 7 replies
If you're working on the local filesystem, there should be no need for
preloadNetThing. What is it you're trying to achieve?
If you want to link to images available locally, you can use
importFileInto or set the filename of a #bitmap member. If you need a
browse dialog or to verify that a given file exists at a particular path
there are xtras available to do this (and some of them are free).
To add to what Sean said, on Windows preloadNetThing() can fail with an error if used locally on a castLib which is already attached to the current movie. So in certain cases, using preloadNetThing() on files on the local network can be a Bad Thing.
To determine an arbitrary path to a local file, you can use the FileIO xtra:
vPath = xtra("fileio").new().displayOpen()
The scripts at http://nonlinear.openspark.com/tips/scripts/xtras/ provide a wrapper for both FileIO and FileXtra4, so you can perform a number of file operations with a single line of code.
What I'm trying to do is read some file a series of jpeg images into my movie from a CD on
demand from a projector into a cast library. These images/files are not currently in my movie
or being accessed by another program.
Since I want to do this in a projector I can't use importFileInto. While I may not need to use
preLoadNetThing the errors from preLoadNetThing suggest that I'm not specifying the path
correctly or it can't access along the path I'm trying to.
Thanks Sean and openspark for the suggestions of the extras and setting the file name -
both of these might provide the solution I need.
It looks like a lot of the Xtras are not an option for me because they aren't safe-for-Shockwave so they can't be in a Shockwave movie playing in a browser.
This is somewhat confusing. First you say:
> Since I want to do this in a projector I can't use importFileInto.
> It looks like a lot of the Xtras are not an option for me because
they aren't safe-for-Shockwave so they can't be in a Shockwave movie
playing in a browser.
So are you creating a projector or a Shockwave movie or both?
Both a projector and a shockwave movie.
> Both a projector and a shockwave movie.
Shockwave can't access an arbitrary local folder because of its security
sandbox - with some exceptions. All of the xtras James and I have
suggested are not Shockwave-safe and can't be used in that environment